> use subs 'reset';
> 

Another way is to explicitly state that you want to use the main namespace:

###
use strict;

my $x = 'a';
my $y = 'b';


print "x=$x,y=$y\n";
reset;
print "x=$x,y=$y\n";
main->reset;
print "x=$x,y=$y\n";


sub reset
{
        $x = 'c';
        $y = 'd';
} 

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to