in reply to -s testing for empty file; works on local, but not on remote

This

tempProteinFamFileCreator(); ... sub tempProteinFamFileCreator { my $infile = $ARGV[0]."_ProFam";

is more generically written as

... tempProteinFamFileCreator( @ARGV ); ... sub tempProteinFamFileCreator { my $infile = $_[0] .'_ProFam'; # or # my $infile = shift .'_ProFam'; ...

Now sub tempProteinFamFileCreator doesn't depend on @ARGV :) after all, you wouldn't write

@ARGV = ( 1 , 2 , 3 ); print @ARGV;
instead of
print 1,2,3;

Replies are listed 'Best First'.
Re^2: -s testing for empty file; works on local, but not on remote
by Jeri (Scribe) on Sep 27, 2011 at 13:01 UTC
    Thanks, I'll def fix it