bug ci feature ?
Honza Pazdziora
adelton na fi.muni.cz
Pátek Leden 14 14:01:51 MET 2000
On Fri, 14 Jan 2000 13:24:28 +0100, Branislav Zahradnik <barney na kmit.sk> wrote:
>
> maly script:
>
> $a = "8a";
> $a++;
> print $a;
>
> Co by malo byt vystupom ? Predpokladal som, ze 8b, no perl mi vrati 9.
9
> Porozumel som zle dokumentacii, ci je to skutocne dajaka chyba ?
Neprecetl jste si ji:
... string contexts since it was set, and has a value
that is not the empty string and matches the pattern
/^[a-zA-Z]*[0-9]*$/, the increment is done as a string,
preserving each character within its range ...
'8a' nematchuje /^[a-zA-Z]*[0-9]*$/.
--
------------------------------------------------------------------------
Honza Pazdziora | adelton na fi.muni.cz | http://www.fi.muni.cz/~adelton/
.project: Perl, DBI, Oracle, MySQL, auth. WWW servers, MTB, Spain.
------------------------------------------------------------------------
Další informace o konferenci Perl