perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: Problem with split function
Date Wed, 28 Jul 2004 08:48:50 GMT
> [- @field = split(".",$script) -]

Split interprets "." as regex, so you need to escape it, so better write

[- @field = split(/\./,$script) -]

Gerald



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message