> > Oh yeah makes perfect sense now...match nothing or nothing and sense
> > everything has nothing it always matches. haha...I like that.
> >
> > Tanton
> 
> I guess the two HORRORS I would like to stomp on are
> 
>       a) using "|" as a delimiter

Everyone should be using the standard CSV notation... which unsurprisingly
is commas.  Using pipes should be restricted to when your data is peppered
with commas.

>       b) forgetting to ascribe "/\|/" in anything like a RegEx
>               a la /|/ in any of it's manifestations....

Hey, I remember to backslash this if I know it's a regex.  split is a pain
because you can easily forget it ALWAYS works with regexs:

split '|', $string

does not split on pipes, but is exactly the same as:

split /|/, $string

and hence the magic of using single quotes doesn't work as you'd expect.
It does get you out of other trouble though:

s'$%@|'replacement';

where you'd otherwise spend all day backslashing things.

Jonathan Paton

=====
---------------BEGIN GEEKCODE BLOCK-----------v3.12
GCS/E d+ s+: a20 C++(+++)>$ UHL++>+++ P+++ L++>++++
E- W++(-) N+ o? K- w--- !O M-- !V PS-- PE++ Y++ PGP
t@ 5-- X-- R- tv- b  DI+ D- G++ e h! !r--->++ !y---
----------------END GEEKCODE BLOCK-----------------
JAPH: print`perldoc perlembed`=~/(Ju.*)/,"\n"

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to