Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?
NodeReaper . o O ( Did I forget to leave the gas on? )

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2018-07-16 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (334 votes). Check out past polls.

    Notices?