Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: -s testing for empty file; works on local, but not on remote

by Anonymous Monk
on Sep 27, 2011 at 01:09 UTC ( #927990=note: print w/ replies, xml ) Need Help??


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;


Comment on Re: -s testing for empty file; works on local, but not on remote
Select or Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://927990]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2014-08-21 06:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (128 votes), past polls