How do you declare a var global versus local? It seems variables a local
and not static as in shell. That is, the sub does not see the vars from
the calling part. So, can someone modify the snipet to make it work?

a.pl
------
#my $x; any diff from the next line?
$x="abc";

doMe

sub doMe
{ $x="xyz";
  print $x; #will print out xyz
  How can I get the "$x=abc" here w/o passing as an arg?
}

thanks,
-rkl

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to