Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Go to perl::critic

by Your Mother (Archbishop)
on Oct 06, 2019 at 12:07 UTC ( [id://11107095]=note: print w/replies, xml ) Need Help??


in reply to Re: Go to perl::critic
in thread Go to perl::critic

Presumably the line number and gist of Dijkstra’s 51 year old letter/paper; named Perl::Critic::Policy::ConsideredHarmful::Goto or some other Java apology.

Replies are listed 'Best First'.
Re^3: Go to perl::critic
by Anonymous Monk on Oct 06, 2019 at 21:50 UTC
    haukex was awake :) anything to add?
    #!/usr/bin/perl -- use strict; use warnings; use diagnostics; sub GOOD { LINE: while(<STDIN>){ next LINE; last LINE; } } sub GOOOD { goto &GOOD; } sub GOOOOD { my $GOOD = 'GOOD'; goto &$GOOD; } sub REALLY { goto &GOOD; } sub GOODREALLY { goto sub { goto &REALLY; }; } sub GOODREHEALLY { my $GOO = sub { goto &REALLY; }; goto $GOO; } sub GOODREHEHEALLY { goto do { sub { goto &REALLY; }; }; } sub BAD { goto LINE; } sub BAAD { my $LINE = 'LINE'; goto $LINE; } sub BAAAD { goto ("LINE", "LINE", "LINE")[@_]; } BAAAAD: { goto &REALLy; # Can't goto subroutine outside a subroutine } goto END; ## bad :END exit( 0 );

      haukex is four times the hacker I am. There’ll be a blizzard warning in Gehenna before I will be 1up’ing him. :P

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found