Efektivita

Honza Pazdziora adelton na informatics.muni.cz
Čtvrtek Leden 21 12:19:41 MET 1999


> $something = "  pánové, to je ale frk...    	";
> $something =~ s/(^\s*|\s*$)//g ;

Vzhledem k tomu, ze tenhle thread je o efektivite, tak bych
poznamenal, ze ty zavorky jsou tam zbytecne/skodlive. Viz Jeffrey E.
F. Friedl: Mastering Regular Expressions. Vytvari to tam zbytecny
lokalni kontext.

------------------------------------------------------------------------
 Honza Pazdziora | adelton na fi.muni.cz | http://www.fi.muni.cz/~adelton/
 The total number of bytes in all expressions in the GROUP BY clause is
 limited to the size of a data block minus some overhead. --Oracle SQL Ref.
------------------------------------------------------------------------


Další informace o konferenci Perl