Powerful perl paradigm I don't find in python

Ulli Horlacher framstag at rus.uni-stuttgart.de
Fri Jan 15 08:51:47 EST 2016


Charles T. Smith <cts.private.yahoo at gmail.com> wrote:
> while ($str != $tail) {
>     $str ~= s/^(head-pattern)//;
>     use ($1);
> }

use() is illegal syntax in Perl.


-- 
Ullrich Horlacher              Server und Virtualisierung
Rechenzentrum IZUS/TIK         E-Mail: horlacher at tik.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/



More information about the Python-list mailing list