To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 213
212  |  214
Subject: 
Re: MPD<->DAT conversion in Perl
Newsgroups: 
lugnet.cad.dev
Date: 
Sun, 21 Feb 1999 10:45:39 GMT
Viewed: 
968 times
  
lehman@javanet.com (Todd Lehman) writes:

       die "Illegal characters in filename $dat"
          if $dat =~ m/[^a-zA-Z0-9_\-\.]/;

Are you sure this handles all the legal LDraw file names?  I think both
tildes (~) and hashed (#) are legal as well.  Sorry if this comment is
out of place, as I'm not too familiar with Perl.

Other than that, your programs look useful.

Fredrik



Message has 1 Reply:
  Re: MPD<->DAT conversion in Perl
 
(...) Oh. OK, no, it doesn't. Is there a spec somewhere on what characters are legal? There regex there should be m/[^a-zA-Z0-9_\-\.~#]/ to include ~ and #, but any other characters would need to be scrutinized very carefully to look for shell (...) (26 years ago, 21-Feb-99, to lugnet.cad.dev)

Message is in Reply To:
  MPD<->DAT conversion in Perl
 
I want to make sure I understand this MPD file format. I wrote two Perl programs, one for slurping up a nested tree of DAT's and producing an MPD, and one for splitting up an MPD back into DAT's. I'm not sure how useful these will be in future (...) (26 years ago, 21-Feb-99, to lugnet.cad.dev)

3 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR