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

Re: Re (tilly) 2: C-like Function Prototypes

by raptor (Sexton)
on Feb 13, 2001 at 16:29 UTC ( [id://58117]=note: print w/replies, xml ) Need Help??


in reply to Re (tilly) 2: C-like Function Prototypes
in thread sub ($self,$var,@arr) {}

ok... I wanted to write also this, but didn't done that ... but now will do :
sub mysub (\$var1,$var2) { ..code.. $var1 = "Hello";#this changes $somvar later in the code }
Later :
mysub(my \$somvar,$echo) print $somevar
instead of :
sub mysub () { my (\$var1,$var2) = @_; } my $somvar = 12; my $refvar = \$somvar; mysub($refvar,$echo) print $somevar
my 5c

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://58117]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found