Given this Pugs program, t.p6: my $fh = open(@ARGS[0]); my @lines = =$fh; $fh.close(); for @lines { print"$_" }
running: pugs t.p6 t.p6 produces no output. Move $fh.close() to after the for loop and all is well. Is this a bug? /-\ Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com