[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Converting From Unix to Mac



>This must be a Tcl limitation, but I
>consider it a serious bug.  In as much as possible, Mac users should be
>free to name their files/folders what they want to.

I had a "friend" I was emailing, trying to explain that anything but a ":" 
means just that. I conjured up the following example that I thought was
kinda fun and had interesting implications.

The Program is as follows:

opendir (TEST, ":#!perl -d:") or die "$!";
   my @stuff = readdir TEST;
closedir TEST;

foreach $thing (@stuff) {
  eval $thing;
}


The Output is as follows:

OLD = reverse-them
NEW = them-reverse


The directory structure is as follows:
(Main folder followed by several sub folders/files)

#!perl -d     
       $folder = "reverse-them";
       print "OLD = $folder\n";
      $folder =~ s#^(.*)-(.*)#$2-$1#;
      print "NEW = $folder\n";
 
I wonder how the Homogenous.pm would handle these file names?
You could probably wriite entire programs one folder/file at a time,
just keeping in mind no ":" and 32 characters perl line and lines must
be ALPHABETIZED. :-)

Have a nice day,

Jon





------------------------------------------------------------------
Jon Lucenius
MultiMedia Director

JCL Associates - Quality Dynamic Technology
 - Custom Progamming
  - Graphic Design
   - Interface Development


JCL Associates
PO Box 5996
Newark DE 19714-5996
302-369-3016 (work /fax)
302-369-2989 (home)
mailto:jonl@magpage.com
http://www.jagunet.com/~jcl/




***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch