Thanks for catching my errors. I was thinking too narrowly, using just the
one template provided. This can of course be dangerous, for things change.
At 05:30 PM 5/22/01 -0400, Jeff Pinyan wrote:
>You might want to use the special split ' ' syntax:
>
> @parts = split ' ', "this and that";
> { local $" = ") ("; print "(@parts)"; }
> # (this) (and) (that)
Will the ") (" assign any amount of space to the list separator?
This is interesting. I haven't encountered this syntax before.
> >my $text = "Browser/Version Platform";
> >$text =~ /(.+)\s.+/;
> >print "$1\n";
>
>That reads too much into $1.
I was not taking into account the greedy nature of the Perl regular
expression engine. I was assuming that the data would always be in the
format specified in the template.
>The OP asked for the FIRST whitespace, and
>you've given him the LAST whitespace.
This raises the issue of process and having good specs to work from and
following them etc.
I did not follow the spec provided :-(
Peter Cline
Inet Developer
New York Times Digital