----- Original Message -----
From: Paul Johnson <[EMAIL PROTECTED]>
To: Sean O'Leary <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, April 25, 2001 7:07 PM
Subject: Re: missing something obvious


> On Wed, Apr 25, 2001 at 12:47:59PM -0400, Sean O'Leary wrote:
> > split (".", $ARGV[0])
> >
> > becomes
> >
> > split (/./, $ARGV[0], 5)
> >

So does split(#.#, $ARGV[0]).
Perl allows to use different delimiters for regular expressions, i case it
helps to make the expressing more readable.
Say i want to split on a backslash.
That would be: split(/\\/, $tosplit);
This can also be written as:
split (#\\#, $tosplit) or split("\\", $tosplit).
It makes things a bit more readable.




Reply via email to