swaroop has asked for the wisdom of the Perl Monks concerning the following question:
________________________________________________use strict; use vars qw ( %data $digit ); $data{value} = 'abcd.$digit.xyz'; sub process_value { $digit = 1000; eval { $data{value} }; print "\$data{value} $data{value} \n"; } &process_value;
Am I missing something?"$data{value} abcd.$digit.xyz "
Code tags added by davido per consideration.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: eval function
by graff (Chancellor) on Aug 18, 2005 at 05:47 UTC | |
|
Re: eval function
by Anonymous Monk on Aug 18, 2005 at 10:19 UTC | |
|
Re: eval function
by anonymized user 468275 (Curate) on Aug 18, 2005 at 09:31 UTC | |
by swaroop (Beadle) on Aug 18, 2005 at 09:51 UTC | |
by anonymized user 468275 (Curate) on Aug 18, 2005 at 10:54 UTC | |
|
Re: eval function
by Tanktalus (Canon) on Aug 18, 2005 at 20:41 UTC | |
|
Re: eval function
by japhy (Canon) on Aug 18, 2005 at 13:35 UTC |