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

Re^5: Perl cheat sheet (dualvars)

by ikegami (Pope)
on Jan 07, 2009 at 09:23 UTC ( #734591=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl cheat sheet (dualvars)
in thread Perl cheat sheet

The example was fine. It doesn't make sense for logger to need the dualvar.

  • If you wanted to pass the error string to the sub, the caller would use "$!".
  • If you wanted to pass the error number to sub, the caller would use 0+$!.
  • If the sub needs both an error string and an error number, it would take two arguments.
  • If the sub wants to look at $!, it wouldn't take it as an argument.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://734591]
help
Chatterbox?
[LanX]: whats the best way to restrict a MySQL Text Column to alphanums + underscore ?
[LanX]: CHARACTER SET?

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2017-03-30 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (360 votes). Check out past polls.