in reply to Oh my perl, oh why perl? Perl debugger idiosyncrasies?

Every time you run a command you are evaling that code. And each eval has its own scope. Ie. my vars created within it disappear as soon as the eval ends.

But as you're just testing stuff, why worry about scoping?

In my repl, which is effectively similar to running in the debugger, I just forget about my (and our). And when I've tested the idea I just ^C & restart the repl to get a clean slate.

Definitely not recommended for real programs, but for just trying things it's fine. Less typing too :)


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

  • Comment on Re: Oh my perl, oh why perl? Perl debugger idiosyncrasies?