When i use this:
my $code = eval "sub { return check_name(true); }";
$return=&$code;
I get error:
Undefined subroutine &main:: called at eval_test.pl line 5
but this is OK.
my $code = eval "sub { return check_name(); }";
So it must have something to do with argument passing inside eval.
What i am doing wrong ?
Thanks for your help,
robert
my $code = eval "sub { return check_name(true); }";
$return=&$code;
I get error:
Undefined subroutine &main:: called at eval_test.pl line 5
but this is OK.
my $code = eval "sub { return check_name(); }";
So it must have something to do with argument passing inside eval.
What i am doing wrong ?
Thanks for your help,
robert