in reply to Newbie Script
Secondly, if you want to actually write to that file handle, you need to specify the file handle when you print:open (FILE, ">>$filename") or die "trying";
Also, you might want to wrap the whole grabbing of user input around a while loop - otherwise your @movies array is totally unecessary.print FILE "$movie\n";
Lastly, but very important - don't quote bare variables:
push @movies, "$line"; # bad habit to get into push @movies, $line; # much better, what if $line was a reference?
jeffa
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)
|
|---|