B
Brian Wakem
ngoc said:my @books_array = ();
open(FILE, '<books_file.txt') or croak 'Can open file';
while (<FILE>){
push @books_array, $_;
}
Other shorter ways than above?
open......
my @books_array = <FILE>;
ngoc said:my @books_array = ();
open(FILE, '<books_file.txt') or croak 'Can open file';
while (<FILE>){
push @books_array, $_;
}
Other shorter ways than above?
ngoc said:my @books_array = ();
open(FILE, '<books_file.txt') or croak 'Can open file';
while (<FILE>){
push @books_array, $_;
}
Other shorter ways than above?
ngoc said:my @books_array = ();
open(FILE, '<books_file.txt') or croak 'Can open file';
while (<FILE>){
push @books_array, $_;
}
Other shorter ways than above?
ngoc said:while (<FILE>){
push @books_array, $_;
}
Other shorter ways than above?
ngoc said:my @books_array = ();
open(FILE, '<books_file.txt') or croak 'Can open file';
while (<FILE>){
push @books_array, $_;
}
Other shorter ways than above?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.