Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Difference between $1 and \1.

by lidden (Curate)
on Dec 31, 2012 at 23:05 UTC ( #1011106=note: print w/replies, xml ) Need Help??


in reply to Re: Difference between $1 and \1.
in thread Difference between $1 and \1.

$str = aa;

Unless you have a variable named aa somewhere, that line will give you an error.

It is only an error when strict subs are in effect.
{ no strict 'subs'; my $str = aa; say $str; }
Though having strict on is almost always a good thing.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2023-09-30 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?