Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re(3): NEWBIE Brain Teaser #2, by nysus

by yakko (Friar)
on Apr 16, 2001 at 06:33 UTC ( #72748=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: NEWBIE Brain Teaser #2, by nysus
in thread NEWBIE Brain Teaser #2, by nysus

Because @_ is localised for the subroutine. Since you called subroutine with no parms, the @_ it's operating from has undef.

As for &subroutine, @_ is not localised and the existing one is passed in. $_ need not apply outside the sub in any event -- the subroutine deals with @_.

Me spell chucker work grate. Need grandma chicken.

Comment on Re(3): NEWBIE Brain Teaser #2, by nysus
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (16)
As of 2015-10-06 17:04 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (155 votes), past polls