Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

(MeowChow) Re2: Arrow Operator Oddment

by MeowChow (Vicar)
on Jun 03, 2002 at 09:58 UTC ( #171183=note: print w/replies, xml ) Need Help??

in reply to Re: Arrow Operator Oddment
in thread Arrow Operator Oddment

Deprecated, eh? Somehow I don't get the impression that it was ever precated to begin with... :-)
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
Re: (MeowChow) Re2: Arrow Operator Oddment
by Cody Pendant (Prior) on Jun 03, 2002 at 11:09 UTC
    Can you explain that a bit for those less enlightened monks?

    I'm a bit baffled. I don't see what the problem is.

    ($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;

      The problem is: MeowChow created a normal Array and a normal Hash:

      @l = 0..10; %h = (a => 1, b => 2);

      But then read from them as if they were a reference to an array and a reference to a hash:

      print @l->[4]; # prints 4 print %h->{b}; # prints 2

      This would be the normal way to access the array and the hash:

      print $l[4]; # prints 4 print $h{b}; # prints 2
      Brigitte    'I never met a chocolate I didnt like'    Jellinek
        Thank you for clearing that up.
        ($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://171183]
and not a whimper to be heard...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2018-03-19 02:21 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (231 votes). Check out past polls.