Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Not understanding 2 sentences in perldoc

by choroba (Archbishop)
on Jul 29, 2020 at 20:13 UTC ( #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
Node Status?
node history
Node Type: note [id://11120010]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2021-01-20 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?