bsb has asked for the wisdom of the Perl Monks concerning the following question:
What could explain the difference?$ perl -MData::Rmap -e 'eval { rmap { $_++ } 1 }; print $@;' $ perl -MData::Rmap -e ' rmap { $_++ } 1 ' Modification of a read-only value attempted at -e line 1.
I'll put the code for Data::Rmap in a follow-up, but I haven't been able to replicate the problem in simpler code (the simpler version works).
Brad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why no $@ after eval? Bug?
by Chady (Priest) on May 07, 2004 at 09:07 UTC | |
by hv (Prior) on May 07, 2004 at 11:26 UTC | |
|
Re: Why no $@ after eval? Bug?
by Corion (Patriarch) on May 07, 2004 at 08:52 UTC | |
by ysth (Canon) on May 07, 2004 at 09:00 UTC | |
|
Re: Why no $@ after eval? Bug?
by hv (Prior) on May 07, 2004 at 11:33 UTC | |
by bsb (Priest) on May 08, 2004 at 03:20 UTC | |
|
Code for: Why no $@ after eval? Bug?
by bsb (Priest) on May 07, 2004 at 08:45 UTC |