Acme::Goto::Line - Perl extension for extending goto with line number goto


Acme-Goto-Line documentation  | view source Contained in the Acme-Goto-Line distribution.

Index


NAME

Top

Acme::Goto::Line - Perl extension for extending goto with line number goto

SYNOPSIS

Top

  use Acme::Goto::Line;
  print "This is a loop\n";
  goto(2);

ABSTRACT

Top

  Perl has long lacked a vital feature present in even basic, goto a line!
  After some thinking and then hacking at the Nordic Perl Workshop in 
  Copenhagen 2004, this is the result

DESCRIPTION

Top

How hard can it be? You do goto, then a line number! It jumps to that line.

You cannot currently goto a place inside a subroutine. Adn you cannot currently goto out of a subroutine running in anything that is used or required. This is because perl removes all that information for us. The goblins are working on a way to fix this.

EXPORT

It overrides your global goto!

SEE ALSO

Top

Why goto is harmful: http://www.acm.org/classics/oct95/

AUTHOR

Top

Arthur Bergman, <sky@nanisky.com>

Various other people at NPW 2004 helped with ideas and suggestions.

COPYRIGHT AND LICENSE

Top


Acme-Goto-Line documentation  | view source Contained in the Acme-Goto-Line distribution.