On Jan 24, 2008 9:46 AM,  <[EMAIL PROTECTED]> wrote:

> Probably horribly obvious I guess but what is the s/// operator
> (s/^-(?=.)//) in the `ARG:' line doing here:

That pattern matches a string beginning with a hyphen, so long as the
hyphen is followed by a non-newline character. The effect of the
substitution is to simultaneously test whether the string is an option
string beginning with a hyphen, and to remove the hyphen.

> Also not sure of the significance of ARG: and OPT:  labels.  (I mean
> how it would differ without them)

Without the labels, the last, next, and redo operators would be unable
to operate upon the named blocks from within a nested block.

Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to