--- Liger-dc <[EMAIL PROTECTED]> wrote:
> What does the following formatting do?
>    $line =~ /^; .ot (\d+)/)
                            ^

Gives you a compile error.
Unmatched parens are bad. =o)

Otherwise, this line would attempt to match the contents of $line,
returning true if $line contained exactly "; " at it's beginning, then
any character, then "ot ", then one or more digits, which would be
stored in $1. If evaluated in a list context, the return value would be
the series of digits as stored in $1. In either case it would still be
true if found, or false if not, though in a scalar context the false
would be '' I think (maybe 0?), while in list context it would be an
empty list, equivalent to ().


=====
print "Just another Perl Hacker\n"; # edited for readability =o)
=============================================================
Real friends are those whom, when you inconvenience them, are bothered less by it than 
you are. -- me. =o) 
=============================================================
"There are trivial truths and there are great Truths.
 The opposite of a trival truth is obviously false.
 The opposite of a great Truth is also true."  -- Neils Bohr

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Reply via email to