At 15:46 -0700 8/10/99, Nicholas G. Thornton wrote: > When I get perl scripts from elsewhere the return carraiges often don't > translate proplerly (getting that wonderful square). How can I fix this? Actually, the carriage returns are probably translating perfectly, as that's what the Mac uses... It's the line feeds you're seeing. How do you "get" the scripts from elsewhere? If you FTP them with Fetch or Anarchie, tell it to use Text mode, not Raw or Binary. > > Currently I'm using a basic text file converter. Most files before >translation > are ttro/ttxt or TEXT/ttxt. > > #!perl > MacPerl::SetFileInfo("McPL", "TEXT", @ARGV) > __END__ Save the following code as a droplet, then drop the file on it. (This is included with MacPerl: Power and Ease... in case you want to know what's in the book that's useful :-) #!perl -w # # lf2cr4mac.pl - droplet to convert <CR.<LF> and/or <LF> to <CR>. # # Written by Chris Nandor, 9712. $/ = "\012"; $^I = ".orig"; while (<>) { s/\015?\012/\015/g; print; } > > Q2: Until I get my next paycheck to buy a book, is there somewhere I can >go to > find out what various modules do? Drop the .pm file onto Shuck (go into the lib folder of the MacPerl Ÿ folder and find the file you are interested in, e.g. CGI.pm for the CGI module. Drop the .pm file onto Shuck). - Vicki -- -- |\ _,,,---,,_ Vicki Brown <vlb@cfcl.com> ZZZzz /,`.-'`' -. ;-;;,_ Journeyman Sourceror: Scripts & Philtres |,4- ) )-,_. ,\ ( `'-' P.O. Box 1269 San Bruno CA 94066 '---''(_/--' `-'\_) http://www.cfcl.com/~vlb http://www.macperl.com ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org