ying to ameliorate a performance problem, you want to look for
the part of your script where it's spending the most time.
HTH-
Brian
PS - $query-param('price') should be $query-param{'price'} - curly
brackets for hashes, parens for subroutines.
/
And the clouds parted, and Brian Gerard said...
>
> [1] http://www.alcyone.com/max/reference/physics/binary.html
> -anyone remember offhand the URL to the /. story on these, btw?
>
...never mind. Found it. (uncaught typo on my first google query... DOH!)
http://slashdot.org
l
-anyone remember offhand the URL to the /. story on these, btw?
[2] I'm a little rushed at the moment, so I don't have time to fill
in any details of how it works. Let me know if you want/need an
explanation and I'll be happy to provide one. :)
/
the headers and body and it works
like a charm!
HTH-
Brian
/~~~~~~~~~~\
| Brian Gerard Duct tape is like the Force. It has |
| First initial + 'lists' a light side and a dark side and
Forgot to mention the platform. This will be on a FreeBSD system, and
the emails will be in the standard flat file format (mbox). Didn't want
anyone going too deep on the M$/Exchange side of the house. :)
/~~\
|
ers to any or all of the above gratefully received!
aTdHvAaNnKcSe-
Brian
/~~~~~~\
| Brian Gerard O'Reilly is to a system administrator|
| First initial + 'lists' as a shoulder
're absolutely correct. Thanks for the correction. :)
/~~~~~~~~~~\
| Brian GerardCrime does not pay... as well as politics. |
| First initial + 'lists'
x-r.test.net
moon-bs-d.test.net
moon-bt-321.test.net
## end ##
Its output is :
ksh$ ./mchname
tibor
mars
moon-bx-r
moon-bs-d
moon-bt-321
ksh$
HTH-
Brian
/~~\
| Brian Gerard
oblem?
>
> if ($diff > 0) { ... }
>
Bah. That's the trouble with starting a reply, getting otherwise occupied
before completing it, and then sending it in late.
What he said. <:)
/~~~~~~\
| Brian G
;ve stated that $diff should be a number.
That being said, the pattern you were trying for would probably be: \A-\d+\Z
Which says: "At the beginning of the string, match a single dash, followed by
one or more digits, followed by the end of the string."
HTH-
Brian
/
e code.
Brian
/~~~~~~\
| Brian GerardI'm sorry, are the voices |
| First initial + 'lists' in my head bothering you?
hat I accept as a rigorous definition (with cites from a well
known authority on the English language, Merriam-Webster). Regardless of
whether you have corresponding citations, I would be interested to know what
you consider "science" to be. Clearly, you rate mathematics, physics, a
spectfully,
Brian
[1] http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=science
Definition 3a.
[2] http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=scientific+method
[3] http://www-cs-staff.stanford.edu/~knuth/index.html
/~~~
plies to regex metacharacters ('.', '*', '+', etc). When perl
looks for the pattern to match it looks for everything up to the first
matching delimiter before trying to compile it. So when you said
m/([^/]+)$/
perl tried to use
([^
as its regex, which isn't v
t in the above terms:
my $this_scripts_name_is = who_am_I();
sub who_am_I
{
my $PROGNAME;
($PROGNAME = $0) =~ s|(\.?\.?(/[^/]+)*/)?([^/]+)|$3|;
return $PROGNAME;
}
HTH-
Brian
/~~\
| Brian Ger
pirit of TMTOWTDI...
map {$_=""} my ($fred, $ginger);
:)
/~~~~~~\
| Brian Gerard Do not taunt Happy Fun Ball.|
| First initial + 'lists'
oesn't exclude RFC1918 reserved addresses (10/8,
172.16/12, and 192.168/16), or multicasts.
* It doesn't take netmasks into account. 1.2.3.255/16 is a valid
host address, while 1.2.3.255/24 is not (it's a broadcast).
Taking these sorts of things into account could make for a
17 matches
Mail list logo