Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: How's your Perl? (II)

by xmath (Hermit)
on Jul 22, 2004 at 09:00 UTC ( #376515=note: print w/replies, xml ) Need Help??


in reply to Re^2: How's your Perl? (II)
in thread How's your Perl? (II)

Hm, strange.. I actually wrote $foo[$[] in the assuption this would prevent any $[-fiddling and force the real solution, but it seems $[ really doesn't work properly in perl: perl -le '$[ = -1; @x = (42); $y = 0; print $x[$y]' prints 42 for me on 5.8.3 and 5.8.4...

I'll add a note to the exercise that the intention is to solve it without diddling $[

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://376515]
help
Chatterbox?
and the monks are mute...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2017-02-28 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (400 votes). Check out past polls.