Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: so simple

by gnat (Beadle)
on Jun 14, 2000 at 22:27 UTC ( [id://18153]=note: print w/replies, xml ) Need Help??


in reply to so simple

The easiest solution is to not have functions that do double duty as methods. Either don't use objects (probably not reasonable) or don't use normal function calls. Make all your subroutines be methods, then say:
sub some_public_subroutine {
  my $objref = shift;

  #blah blah
  $objref->some_private_sub("arg1", "arg2", "...");

}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-19 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found