We don't bite newbies here... much | |
PerlMonks |
Re: How can I call subroutines in an arrayby Chmrr (Vicar) |
on Jun 10, 2003 at 04:54 UTC ( [id://264539]=note: print w/replies, xml ) | Need Help?? |
It's hard to tell, but you're calling them when you think you're putting them into the array -- that is, at the @procs = (&a1, &a2) line. The solution to this problem is references, as discussed in perlref and perlreftut. As follows:
perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'
In Section
Seekers of Perl Wisdom
|
|