in reply to Functions (Return V Print)
The script part you show is working:
my $n= x('AUbla bla bla bla'); print $n; sub x { my @fucntion64= @_; foreach my $j (@fucntion64) { if(substr($j,0,2) eq "AU") { my($item,$title) = split(' ',substr($j,2),2); return $title."<br />"; } } } # prints bla bla bla<br />
Did you notice that you wrote fucntion64 instead of (I assume) function64?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Functions (Return V Print)
by packetstormer (Monk) on Feb 04, 2011 at 14:30 UTC | |
by jethro (Monsignor) on Feb 05, 2011 at 01:53 UTC |