Thread Dateihandles - Speicherverbrauch (7 answers)
Opened by Oliver_M at 2007-10-22 11:29

bloonix
 2007-10-22 12:50
#101174 #101174
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
Wenn du die Datei öffnest, wird noch nichts in den Speicher geladen.

Erst wenn du das Filehandle so ansprichst, dass es dir etwas aus
der Datei liefern soll. Zum Beispiel mit:

Code: (dl )
1
2
3
my $line = <$fh>;
my @lines = <$fh>;
my $lines = do { local $/; <$fh> };
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.

View full thread Dateihandles - Speicherverbrauch