1 Jul
2003
1 Jul
'03
20:21
Hello, On Tue, 01 Jul 2003, Michael Matz wrote:
Beachte das dies ein scalar, keine Array ist. Das dies tatsache die ganze Datei in einen String liest musst du den line-separator undefen:
undef $/;
*patsch* Das ist boese! Ich weiss grad nicht wo das steht, ah, doch: man -P'less "+/ slurp mode"' perlvar
open(F, "test.html"); my $old_ils = $/; undef $/; my $all = <F>; $/ = $old_ils; close F;
s.o. my $all = ''; open(F, "test.html") or die $!; { local $/; $all = <F>; } close(F); -dnh -- I used to be a multiple personality, until we took a vote and decided we weren't. -- Stevo in the SDM