Common Perl Pitfalls

Peter J. Holzer hjp at wsr.ac.at
Mon Jan 24 04:33:37 CST 2000


On 2000-01-24 10:57:23 +0100, Johannes Fuernkranz wrote:
> "Peter J. Holzer" wrote:
> > 
> > PS: Wie man merkt, vermeide ich $_ wo immer möglich.
> 
> Warum?

Weil mir implizite Variablen prinzipiell unsympathisch sind. 

Weil es in früheren Perl-Versionen eine globale Variable war und man
dadurch ziemlich untracebare Bugs produzieren konnte.

Weil das zwar jetzt nicht mehr der Fall ist, aber andere $<seltames
Zeichen>-Variablen nach wie vor global sind und ich mir nicht merken
kann, welche das sind.

Zusammenfassend: Weil ich meinen Code auch noch nächste Woche verstehen
will.

	hp

-- 
   _  | Peter J. Holzer             | Nobody should ever have to be
|_|_) | Sysadmin WSR / Obmann LUGA  | ashamed if they have a secret love
| |   | hjp at wsr.ac.at               | for writing computer programs that
__/   | http://wsrx.wsr.ac.at/~hjp/ | actually work.  -- Donald E. Knuth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 371 bytes
Desc: not available
Url : http://mail.pm.org/archives/vienna-pm/attachments/20000124/52a4d940/attachment.bin


More information about the Vienna-pm mailing list