Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: Acme::Don't

by ariels (Curate)
on Jun 19, 2002 at 10:54 UTC ( #175619=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Acme::Don't
in thread Acme::Don't

Surely they're not quite the same? Acme::Don't's don't {...} is documented as returning undef. When used as the last line of a module, don't { 1 } isn't (sorry) the same as

<<'comment' 1 comment


Comment on Re: Re: Re: Acme::Don't
Select or Download Code
Replies are listed 'Best First'.
Re: Acme::Don't
by cLive ;-) (Parson) on Jun 20, 2002 at 20:11 UTC
    I was just replying to the "how to make a comment part" - not the Acme::Don't. Who cares if they are the same or not? not me :)

    cLive ;-)

    --
    seek(JOB,$$LA,0);

Re: Re: Re: Re: Acme::Don't
by zude (Scribe) on May 14, 2004 at 03:46 UTC
    If undef is strictly required, then just:
    undef or do { ... };

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (15)
As of 2015-07-29 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls