Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Re[3]: How's your Perl?

by Juerd (Abbot)
on Oct 27, 2003 at 08:11 UTC ( #302356=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @x=(\$_,\$_);
    my $initial_value = $x[0];
    ...
    $_=20;
    print "\$x[$_] = ${$x[$_]}\n" for 0..$#x;
    die "But \$x[0] did not change.\n" if $x[0] eq $initial_value;
    
  2. or download this
    print "\$x[$_] = ${$x[$_]}\n" for 0..$#x;
                     ^^      ^
    ...
    print "\$x[$_] = $x[$_]\n" for 0..$#x;
    
    LHS is $foo and RHS is $foo. Output is correct and shows that the need
    +ed change did not happen.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2023-12-08 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (37 votes). Check out past polls.

    Notices?