Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
go ahead... be a heretic
 
PerlMonks  

Re^3: Exiting eval via next: is that so bad?

by Anonymous Monk
on Sep 24, 2011 at 02:01 UTC ( #927634=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Exiting eval via next: is that so bad?
in thread Exiting eval via next: is that so bad?

Please forgive necromancy.

Hi

New questions go in Seekers Of Perl Wisdom

Welcome

You might wish to review The Perl Monks Guide to the Monastery, How do I post a question effectively?, Where should I post X?

$ perl -wle " 0+$foo; LABEL: for(1,2){ eval { next LABEL; }; }" Useless use of addition (+) in void context at -e line 1. Name "main::foo" used only once: possible typo at -e line 1. Use of uninitialized value $foo in addition (+) at -e line 1. Exiting eval via next at -e line 1. Exiting eval via next at -e line 1. $ perl -wle " no warnings q[exiting]; 0+$foo; LABEL: for(1,2){ eval { + next LABEL; }; }" Useless use of addition (+) in void context at -e line 1. Name "main::foo" used only once: possible typo at -e line 1. Use of uninitialized value $foo in addition (+) at -e line 1.

Related discussions Exiting subroutine via next, #29238: exiting eval via last


Comment on Re^3: Exiting eval via next: is that so bad?
Download Code
Re^4: Exiting eval via next: is that so bad?
by dd-b (Monk) on Oct 17, 2011 at 20:48 UTC

    In my mind, this wasn't a new question, it was a continuation of a discussion I'd found. Isn't the idea of searching first to avoid starting new questions when reasonably possible?

    Anyway, thanks for your suggestion of the "no warnings" pragma.

      Isn't the idea of searching first to avoid starting new questions when reasonably possible?

      No, the idea is to find answers to your own questions :)

      If the old thread doesn't answer your question, you create a new one, and say:

      I got this question ... saw this old related thread ( [id://104789] ), but it doesn't answer my question exactly

       

      In my mind, this wasn't a new question, it was a continuation of a discussion I'd found.

      This is common , but consider the dates.

      Hofmator, whom you asked a question, hasn't visited perlmonks in 5 years.

      The discussion you continued is 10+ years old.

      Sure any one of the perlmonks could notice your node and reply, but only Hofmator is guaranteed to notice, if he returns and has /msg me when a reply arrives turned on:) and as you've noticed, it isn't the same as asking all the perlmonks for help, all you got was me :)

      necromancy tends to fly under the radar , I try to hunt for these things :)

      Pay no attention to the troll behind the mask.

        Pay no attention to the troll behind the mask.

        Its not like the troll answered the OPs question 6 months ago

        Its not like it took jdporter 6 months to notice

        Whos the troll?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://927634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-04-20 18:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (486 votes), past polls