[Cologne-pm] open () was mache ich falsch?

Michael Lamertz mike at lamertz.net
Sat Apr 9 09:24:20 PDT 2005


Oh-oh...

On Sat, Apr 09, 2005 at 10:30:49AM +0200, Cem Sakaryali wrote:
> "warn" ist nur reingekommen weil ich sehen
> wollte ob es nur eine Datei ist oder alle.
> Vorgesehen ist "die" an der Stelle, wenn alles
> läuft.


    ---------- check.pl ----------
    #!/usr/bin/perl

    use strict;
    use warnings;

    open F, "nothere.txt";
    my @a = <F>;
    close F;

    print @a;
    ---------- check.pl ----------

und 

    ---------- snip ----------
    tweety:~$ perl check.pl
    readline() on closed filehandle F at check.pl line 7.
    tweety:~$
    ---------- snip ----------

> auch mit "use strict" und "warn" gab es
> bei mir kein Abbruch, lief bis zu Ende durch.
> (perl 5.6.0)

Hurm:

    ---------- perldoc perlhist ----------
    ...
    5.6.0         2000-Mar-22
    ...
    5.6.2         2003-Nov-15     Fix new build issues
    ---------- perldoc perlhist ----------

Also, 5.6.NULL geht ja wohl garnicht.

5.8.0 kam mitte 2002 'raus, was auch schon 3 Jahre her ist.  5.8.4 ist
aktuell.

Du bist also 5 Jahre und 1 Monat zurueck.

-- 
	    Well, then let's give that Java-Wussie a beating... (me)

Michael Lamertz                        |     +49 2234 204947 / +49 171 6900 310
Sandstr. 122                           |                       mike at lamertz.net
50226 Frechen                          |                 http://www.lamertz.net
Germany                                |               http://www.perl-ronin.de 


More information about the Cologne-pm mailing list