Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Dereferencing and comment from Camel

by PodMaster (Abbot)
on Dec 21, 2002 at 04:53 UTC ( #221567=note: print w/replies, xml ) Need Help??


in reply to Dereferencing and comment from Camel

Nope, I think that's about it, unless you consider slices a form of dereferencing ;)(in which case the $ sigil ain't involved)
my %hash = ( abe => 1, lincoln => 2 ); print for @hash{ abe => lincoln }; __END__


MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
** The Third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://221567]
help
Chatterbox?
[Eily]: if so, most subs start with my (VARIABLES) = @_ anyway
[moritz]: for short subs, I sometimes let them work on $_[0] directly
[Eily]: moritz but that should be fine unless you modify them
[choroba]: if you modify them, Perl will crash with "Modification of a read-only value attempted" for $1
[choroba]: I can't replicate the situation, but I remember it was very hard to debug

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (11)
As of 2018-02-22 17:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (296 votes). Check out past polls.

    Notices?