"Am I doing something really stupid?" No, asking for help is never stupid. :)
ckn...@savage.za.org wrote: > > Hi, > > I have the following code: > #!/usr/bin/perl > use diagnostics; > use strict; > use warnings; > my @Files = </flows/ft*>; > foreach my $File (@Files) { > print $File "\n"; This print statement is treating $File as a file handle. It is similar to: print STDERR "\n"; To get it to print the contents of $File, use a comma: print $File, "\n"; See: perldoc -f print http://perldoc.perl.org/functions/print.html > } -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. I like Perl; it's the only language where you can bless your thingy. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/