Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: qr/string/ is not the same as qr/$var/ ?

by ambs (Pilgrim)
on Apr 19, 2005 at 08:16 UTC ( [id://449140]=note: print w/replies, xml ) Need Help??


in reply to qr/string/ is not the same as qr/$var/ ?

This is not regular expressions problem, nor qr problem. If you try foo.pl as:
my $foo = shift; print $foo,"\n";
and do
[ambs@eremita tmp]$ perl foo.pl 'fo\o' fo\o
I know I didn't answer your question. Basically, it seems program arguments are quoted. Can't say why.

Alberto Simões

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-23 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found