Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

help with scoping (code), part 2

by deprecated (Priest)
on Nov 04, 2001 at 02:16 UTC ( [id://123097]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # warning, pseudocode
    foo(4); # prints "4"
    ...
      bar = shift() unless defined bar;
      print bar;
    }
    
  2. or download this
    sub too_slow {
      my $object = ReallyHuge::SlowObject -> new(%args);
      # do stuff with $object
      return "stuff";
    }
    
  3. or download this
    sub less_slow {
      my $object;
    ...
        $dbh -> do("update storage set object='$object'");
      }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found