Hello, I've been lurking a little bit and wanted to ask a (hopefully
simple) question.
I use a perl script to convert some text files on my mac, but occasionally
I want to put the text file on my windows machine and run my script there.
Yay for the cross-platform abilities of perl :) Because windows and mac use
a different code for their newlines my textfile has little square
characters instead of carriage returns.
I know I can use -0 on the command line to tell my script that $/ is
something different, so that it correctly interprets \n, but haven't been
able to figure out what that should be. I think I'm close, I expected 015
to do it but it didn't.
Currently if I need to do something like that I use a texteditor to resave
the text file before running my script, but I would like to be able to
leave out that step. So I think I could type "perl -0123 myscript.pl". Does
it work like that? What is the code I would use for the mac text file?
TIA,
Lynn
- [MacPerl] Re: Setting $/ Lynn Glessner
- [MacPerl] Re: Setting $/ Scott R. Godin
- [MacPerl] program help anthony . scott
- Re: [MacPerl] program help David Iberri
- Re: [MacPerl] program help anthony . scott
- Re: [MacPerl] program help David Iberri