the loop they could do it without an extra variable?
--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
about associativity and order of evaluation.
If you've been bitten by unexpected outcomes before you might have to
try it to make sure it does what you think.
I've used shift, shift before, so I already know. But it would be unfair
to foist on a junior maintenance programmer, IMHO.
--
Peter Scott
At 04:03 PM 6/14/02 -0700, Yitzchak Scott-Thoennes wrote:
In article [EMAIL PROTECTED],
Peter Scott [EMAIL PROTECTED] wrote:
..+? Match at least one character that isn't a newline,
I assume you meant '.+?'.
Yes, that is in fact what I typed.
Avoid putting periods at the beginning
at least one character that isn't a newline,
followed by as few of them as necessary for the
rest of the match to succeed
$ Match end of string or newline at end of string
Clearer now?
I would probably have written
/([^-]+)$/
--
Peter Scott
time, is worth remembering...
--
Peter Scott
Pacific Systems Design Technologies
At 12:00 PM 2/6/2002 +, Stephen Turner wrote:
On Wed, 6 Feb 2002, Stephen Turner wrote:
Chambers dictionary (the best single-volume British dictionary) says it
does.
Since I haven't seen anyone else mention it yet, here's the obligatory
reference:
http://www.perlcabal.com/real.html
...
--
Peter Scott
Pacific Systems Design Technologies
be extended to arbitrary operators without losing
any conciseness:
#!/usr/bin/perl -l
for(@ARGV){push@s,$_ and next if/\d/;/^p/print$s[-1]and
next;eval\$s[-2]$_=pop\@s||die!}
$ ./foo 5 9 + p 3 % 5 / p 9 '**' p
14
0.4
0.000262144
--
Peter Scott
Pacific Systems Design Technologies
http
else had already
done it. The main intended usage appears to be via a supplied script, but
I'm using a script in .forward that has some simple code to call
Mail::SpamAssassin. I can just delete anything with a high enough score
from the spool so it never goes up to my MUA.
Peter Scott
[EMAIL
of the standard Perl
distribution) provides the strtod and strtol for
converting strings to double and longs, respectively.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
the beginning and end, each layer formed from the words
that differ by one letter from the node above, and look to see when a word
in one tree is found in the other.
--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com
11 matches
Mail list logo