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

Re: subroutine bewilderment: how to mimic builtins

by diotalevi (Canon)
on Feb 07, 2006 at 23:29 UTC ( #528669=note: print w/replies, xml ) Need Help??


in reply to subroutine bewilderment: how to mimic builtins

If @_ is empty, read from $_. Check wantarray()'s value when deciding what to do or what to return.

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

  • Comment on Re: subroutine bewilderment: how to mimic builtins

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://528669]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2018-01-24 00:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (254 votes). Check out past polls.

    Notices?