Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-08-27 16:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (380 votes). Check out past polls.