http://qs321.pair.com?node_id=1126573


in reply to How to extent the scope of local variable outside block??

It's time to stop being a leech!

We're here to help you learn, but not to do your job, nor even to do your job of educating yourself. This question clearly means you haven't read the most basic information about scoping nor about the implication of declarring variables my $var... nor -- well, you've provided too many examples of failing to help yourself to bother listing them all. A quick review of your posts says that's a consistent behavior.


Questions containing the words "doesn't work" (or their moral equivalent) will usually get a downvote from me unless accompanied by:
  1. code
  2. verbatim error and/or warning messages
  3. a coherent explanation of what "doesn't work actually means.