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 ( [id://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;

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found