Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Perl Syntax Variation Between Linux/Windows when -e flag is used!

by MADuran (Beadle)
on Mar 26, 2004 at 15:41 UTC ( #340045=note: print w/ replies, xml ) Need Help??


in reply to Perl Syntax Variation Between Linux/Windows when -e flag is used!

My understanding is commandline quoting is shell dependent. So it is how the CMD.EXE or COMMAND.COM is excepting quotes. On Win32 the double quotes is the only way to tie a space seperated parameter together. Because of the issues with single quotes on WIN32 command line I usually use the quote-like operators on the command line in win32.
Example  perl -pae "$_ = qq|$F1\n|;" test23.txt

I have seen this issue is mentioned in the Camel 3rd edition as an issue (pages 489-491 of Programming Perl 3rd Ed).
HTH

MADuran
Who needs a spiffy sig


Comment on Re: Perl Syntax Variation Between Linux/Windows when -e flag is used!
Download Code
Re: Re: Perl Syntax Variation Between Linux/Windows when -e flag is used!
by Anonymous Monk on Mar 26, 2004 at 16:14 UTC
    Thanks to all involved -Happy-The-Monk, MADuran and davis---for clearing this up for me.
    So its not perls fault--i stand corrected. Also I will use the qq in future.
    Sean

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://340045]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-12-19 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (83 votes), past polls