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

Re^3: Taking reference to function

by ELISHEVA (Prior)
on Apr 16, 2009 at 06:24 UTC ( #757854=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    sayHello();
    eval q{sub sayHello { print "Bonjour, le monde!\n"; }};
    sayHello();
    
  2. or download this
    Hello, world!
    Subroutine sayHello redefined at (eval 1) line 1.
    Bonjour, le monde!
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://757854]
help
Chatterbox?
[Your Mother]: Thatís silly. Itís a string op tool.
[Lady_Aleena]: So I guess I'll go argue with File::Find and grep.
[Your Mother]: I would probably use Path::Tiny instead for it's slurp and such.
[Your Mother]: s/it's/its/
[Lady_Aleena]: Your Mother, how would that work? I'm having a hard time understanding the pod.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2017-05-23 19:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?