Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: Comparision Utility PERL

by Marshall (Abbot)
on Feb 09, 2018 at 11:30 UTC ( #1208813=note: print w/replies, xml ) Need Help??


in reply to Re^3: Comparision Utility PERL
in thread Comparision Utility PERL

Ok. In Perl, the command line arguments are passed into the program as a pre-declared array, @ARGV.
So your filename.pl program might have something like this:
my ($file1,$file2,$col1fromfile1, $col2fromfile2) = @ARGV;
Of course as with any user input, your program should check that the files can be opened and the 2 columns "make sense".

Write a simple program that gets 4 command line arguments and prints them. Let us know how it goes.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1208813]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2018-04-27 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?