Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Function Identification.

by mattk (Pilgrim)
on Jul 26, 2005 at 12:48 UTC ( [id://478160]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Foo;
    use base 'Exporter';
    @EXPORT = "func";
    
    sub func { return "Foo" }
    
  2. or download this
    package Bar;
    use base 'Exporter';
    @EXPORT = "func";
    
    sub func { return "Bar" }
    
  3. or download this
    [matt@blue 478146] cat func.pl 
    package func;
    ...
    print func();
    [matt@blue 478146] perl -l func.pl 
    Bar
    
  4. or download this
    [matt@blue 478146] cat meth.pl 
    package meth;
    ...
    print $o->func;
    [matt@blue 478146] perl -l meth.pl 
    Foo
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-04-20 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found