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