xiaoyafeng has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks
I'm stuck with transfering a gid pair using eval.
C:\>perl -MData::Dumper -e "$a = q([[gid, 0509b1300000000000BAB002]]); + print Dum per eval $a;" Bareword found where operator expected at (eval 1) line 1, near "0509b +1300000000 000BAB002" (Missing operator before b1300000000000BAB002?) $VAR1 = undef;
I found if I delete leading number of 2nd string, script works fine, but I don't know what I do wrong. Please help! TIA
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: question about eval(bare word etc);
by JavaFan (Canon) on Feb 23, 2012 at 10:12 UTC | |
by Anonymous Monk on Feb 23, 2012 at 15:33 UTC | |
|
Re: question about eval(bare word etc);
by choroba (Cardinal) on Feb 23, 2012 at 09:34 UTC | |
|
Re: question about eval(bare word etc);
by locked_user sundialsvc4 (Abbot) on Feb 23, 2012 at 16:53 UTC |