Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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");


Comment on Re: Calling Functions
Select or Download Code

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 lurking in the Monastery: (6)
As of 2015-08-29 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (343 votes), past polls