my $file = shift; my $F = FileHandle->new; if( defined $F ) { $F->open($file) or die "can't open file $file: $!" } # it also lets you do things like $F->autoflush; # instead of that whole select() business
~Particle ;Þ
In reply to Re: I just realized that FILEHANDLES violate use strict
by particle
in thread I just realized that FILEHANDLES violate use strict
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |