Skip Menu |

This queue is for tickets about the WWW-Mechanize-Shell CPAN distribution.

Report information
The Basics
Id: 2725
Status: resolved
Priority: 0/
Queue: WWW-Mechanize-Shell

People
Owner: corion [...] cpan.org
Requestors: mark [...] summersault.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.22
Fixed in: (no value)



Subject: documentation for links/open incomplete
Hello, Attached is patch for the documentation for "links" and "open". It wasn't documentated that you can use "open 1" to open link number 1 on a page, or that RE's used with open must begin and end with "/". This may need some revision to play better with Pod::Constants. Mark
Subject: open/links patch.
From: mark [...] summersault.com
--- Shell.pm.orig Fri May 30 17:18:48 2003 +++ Shell.pm Mon Jun 2 10:39:03 2003 @@ -620,6 +639,9 @@ Display all links on a page +The links numbers displayed can used by C<open> to directly +select a link to follow. + =cut sub run_links { @@ -761,12 +783,17 @@ Open a link on the current page -It opens the link whose text is matched by RE, -and displays all links if more than one matches. +<open> accepts one argument, which can be a regular expression or the number +of a link on the page, starting at zero. These numbers are displayed by the +C<links> function. It goes directly to the page if a number is used + or if the RE has one match. Otherwise, a list of links matching +the regular expression is displayed. + +The regular expression should start and end with "/". Syntax: - open RE + open [ RE | # ] =cut