Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Perl >> Snippet

read a text file into an array then print it


open (FFF, "file.txt" );
@all = < FFF > ;
print @all ;                  # print "@all\n"; joins elements of @all with a space
close (FFF)