in reply to "my sub" error
That just means that lexically scoped subs can't yet be defined that way. What you probably mean is:
sub save_friend_info { # . . . }
You can have a lexical sub, but you need to assign it to an ordinary scalar:
{ my $save_friend_info = sub { # . . . }; $save_friend_info->(@args) or die $!; }
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "my sub" error
by davorg (Chancellor) on Nov 07, 2006 at 13:51 UTC | |
by Anonymous Monk on Nov 07, 2006 at 13:57 UTC |