Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: my within brackets

by jwkrahn (Abbot)
on Oct 14, 2021 at 20:24 UTC ( [id://11137547]=note: print w/replies, xml ) Need Help??


in reply to my within brackets

It is useful in some cases. For instance if you do:

my $y; ... my ( $x, $y, $z ) = split / +/, $rname;

You will get a warning about an earlier declaration of $y. In this case you could do:

my $y; ... ( my $x, $y, my $z ) = split / +/, $rname;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-25 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found