Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Not understanding 2 sentences in perldoc

by choroba (Cardinal)
on Jul 29, 2020 at 20:13 UTC ( [id://11120010]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($x, $y, $z) = qw( 1 2 3 );
    
  2. or download this
    (my ($x, $y, $z) = qw( 1 2 3 )) = qw( a b c ); # $x = 'a', $y = 'b', $
    +z = 'c'.
    
  3. or download this
    print scalar (my ($x, $y, $z) = qw( a b c d ));  # 4
    
  4. or download this
    ($x = 12) =~ s/1/4/; print $x;  # 42
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found