Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

SPOILER AHOY!

by MrScrooge (Novice)
on Apr 15, 2001 at 23:36 UTC ( [id://72690]=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

You are correct that @_ will be passed to a subroutine if you call it without using the parenthesis. This is true of both 5.6 and 5.005 at least.

However the result of the attempted assignment of a list to $_ differ depending on Perl version, and this DOES affect the output you will see.

Replies are listed 'Best First'.
Re: SPOILER AHOY!
by merlyn (Sage) on Apr 16, 2001 at 17:47 UTC
    However the result of the attempted assignment of a list to $_ differ depending on Perl version, and this DOES affect the output you will see.
    Perl never attempts to assign a list to $_. Ever.

    Understanding is demonstrated when correct phrasing is used. {grin}

    -- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-29 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found