Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Go to perl::critic

by Anonymous Monk
on Oct 06, 2019 at 09:35 UTC ( [id://11107091]=note: print w/replies, xml ) Need Help??


in reply to Go to perl::critic

What would it report exactly? Critic Policy Is xpaths

Replies are listed 'Best First'.
Re^2: Go to perl::critic
by Your Mother (Archbishop) on Oct 06, 2019 at 12:07 UTC

    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.

      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://11107091]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found