Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Blessing with unknown classnames

by bliako (Monsignor)
on Apr 01, 2021 at 16:33 UTC ( [id://11130675]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo {
      if( $error ){
    ...
    }
    my $ret = foo();
    die "@$ret" if ref($ret) eq 'YouveGotError';
    
  2. or download this
    sub fortunecookie {
      my $cookie = ...;
    ...
      return \$cookie
    }
    # ok a bit awkward with the stringref but it demonstrates that one can
    + do this with scalars too
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11130675]
Approved by marto
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-03-28 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found