Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: ActiveState Perl: Forward or Backward Slash?

by polypompholyx (Chaplain)
on Sep 20, 2005 at 09:51 UTC ( #493390=note: print w/ replies, xml ) Need Help??


in reply to ActiveState Perl: Forward or Backward Slash?

Just to make it even more confusing, you can happily mix up backslashes and forward slashes within Perl...

print "Yes\n" if -e "C:\\WINNT/System32\\cmd.exe";

Yes

Although, as other posters have said, running system with anything other than pure backslashes is likely not to work.


Comment on Re: ActiveState Perl: Forward or Backward Slash?
Select or Download Code
Re^2: ActiveState Perl: Forward or Backward Slash?
by ww (Bishop) on Sep 20, 2005 at 12:41 UTC
    uhmmm, er...

          "...can happily mix...."

    Slap_happily?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2014-12-17 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (36 votes), past polls