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

Re^2: Use method/function signatures with Perl

by Ovid (Cardinal)
on Dec 06, 2004 at 01:44 UTC ( #412561=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        multimethod find => (Container, Query) 
                         => sub { $_[0]->findquery($_[1]) };
    
    ...
    
        multimethod find => (Index, Word)      
                         => sub { $_[0]->lookup_word($_[1]) };
    
  2. or download this
        sub find(Container $container, Query $query) } 
            $container->findquery($query);
        };
    ...
        sub find(Index $index, Word $word) {      
            $index->lookup_word($word) };
        }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://412561]
help
Chatterbox?
[davido]: Using the -i switch causes Perl to rename the input file, read from it, and write to a file using the original file's name. If there's an extension provided, as in -i.bak, it's easy to see where the input file is. Where is the input file temporarily....
[davido]: placed if there is no extension provided to the -i switch?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-09-22 14:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (264 votes). Check out past polls.

    Notices?