Rob Dixon wrote:
>
> John W. Krahn wrote:
> > Rob Dixon wrote:
> >>
> >> John W. Krahn wrote:
> >>> Scot Needy wrote:
> >>>>
> >>>> ($wwwname,$cust,$YYMMDDay) = split('\.',$_);
> >>>
> >>> The first argument to split is a regular expression.
> >>>
> >>> my ( $wwwname, $cust, $YYMMDDay ) = split /\./;
> >>
> >> But, as it has an implied 'm',
> >
> > I don't know what you mean by this. Could you explain please?
>
> Sure. I'm saying that
>
> split '\.';
>
> actually compiles as
>
> split m'\.'
>
> and is therefore the same. It has to be a valid quotation character
> though, because anything else won't be recognised out of context.
So, you are saying that:
split ' ';
Is the same as:
split m' ';
And the same as:
split / /;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]