Thread Filehandle in die Datenbank (9 answers)
Opened by Froschpopo at 2007-05-09 11:05

pq
 2007-05-09 13:22
#76585 #76585
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=renee,09.05.2007, 09:25]
Code: (dl )
my $bin_data = do{ local (@ARGV,$/) = $file; <> };
[/quote]
oder einfach so?
my $bin_data = do{ local $/; <$file> };
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Filehandle in die Datenbank