rsennat has asked for the wisdom of the Perl Monks concerning the following question:
whats could be the problem??# $arg is built in a for loop like this. $arg .= "\"" . $str . "\", "; ##### after building $arg will be "bkund", "454545" chop $arg ; chop $arg ; # the below line works doesn't work with eval my $call = ' $jobs->$func ($arg) ' ; # this is actual data $arg - the below line works with eval # my $call = ' $jobs->$func ("bkund", "454545") ' ; my %jobstats = eval $call;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: problem in using eval strings
by Tanktalus (Canon) on Dec 02, 2005 at 16:02 UTC | |
Re: problem in using eval strings
by Belgarion (Chaplain) on Dec 02, 2005 at 15:43 UTC | |
Re: problem in using eval strings
by mrborisguy (Hermit) on Dec 02, 2005 at 16:53 UTC | |
Re: problem in using eval strings
by ikegami (Patriarch) on Dec 02, 2005 at 15:49 UTC | |
Re: problem in using eval strings
by rsennat (Beadle) on Dec 02, 2005 at 15:55 UTC | |
by ikegami (Patriarch) on Dec 02, 2005 at 16:04 UTC |