in reply to Re^8: perl eval
in thread perl eval
Oh - sorry - I should test my postings. You're not running with warnings, otherwise, you would have seen the following warning:
> perl -w tmp.pl main::egal() called too early to check prototype at ..\tmp.pl line 3.
What I meant to post was this:
#my $param = 'egal("7006","7006")'; #eval print $param; sub egal () { }; egal("7006","7006");
which outputs
> perl -w tmp.pl Too many arguments for main::egal at ..\tmp.pl line 7, near ""7006")" Execution of ..\tmp.pl aborted due to compilation errors.
Which is what also happens in your eval but which you never output because you never check for that. See previous posts on what to do.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: perl eval
by paribasu (Initiate) on Jul 06, 2010 at 07:40 UTC |