Help for this page

Select Code to Download


  1. or download this
    $ perl5.12.0 -E'sub g { say "g" }  sub f { goto &{ \&g } }  f();'
    g
    
  2. or download this
    $ perl5.12.0 -e'goto FOO; while (1) { FOO: last }'
    Use of "goto" to jump into a construct is deprecated at -e line 1.
    
  3. or download this
    $ perl5.12.0 -E'while (1) { goto FOO; } FOO: say "done"'
    done