Chas Owens wrote:
The problem is that "my $c = 5" creates a lexical inside the while
loop created by -p and it goes out of scope immediately.

Yes, that's what 'my' means. If you do it without the 'my', it works. And it has a lot of security problems. But it's also quick and easy to remember. Like any tool, it cannot be used to solve all your problems.


--
Just my 0.00000002 million dollars worth,
   Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to