in reply to Re: dereferencing stuff
in thread Getting keys/values from a referenced hash
Also, your slurp-and-eval would be cleaner as a require or a do instead.#!/usr/bin/perl -wT use strict; my $c; my $code = '$global = 10; $c = 6'; eval $code; die $@ if $@; print "\$c = $c\n"; __END__ =head1 OUTPUT with strict Global symbol "$global" requires explicit package name at (eval 1) lin +e 1. =head2 OUTPUT w/o strict $c = 6
-Blake
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: dereferencing stuff
by professa (Beadle) on Nov 28, 2001 at 19:07 UTC | |
by blakem (Monsignor) on Nov 29, 2001 at 02:31 UTC | |
by professa (Beadle) on Nov 29, 2001 at 17:43 UTC |