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