Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Go to perl::critic

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


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

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 );

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

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-19 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found