Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by lidden (Curate)
on Dec 31, 2012 at 23:05 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others about the Monastery: (9)
As of 2024-04-23 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found