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
In reply to Re: Re: dereferencing stuff
by blakem
in thread Getting keys/values from a referenced hash
by professa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |