Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Calling Functions

by andal (Hermit)
on Mar 29, 2012 at 07:33 UTC ( #962320=note: print w/replies, xml ) Need Help??


in reply to Calling Functions

Possibly, this goes about special behavior of &func;. For example try this code

use strict; sub test1 { my $abc = shift; print $abc, "\n"; } sub test2 { print "test2: $_[0]\n"; &test1; test1("from test2"); print "once again:", $_[0], "\n"; } test2("from main");

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://962320]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2017-05-23 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?