Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: Comparision Utility PERL

by hippo (Bishop)
on Feb 09, 2018 at 10:03 UTC ( [id://1208800]=note: print w/replies, xml ) Need Help??


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

In Re^3: Comparision Utility PERL I recommended looking in the Tutorials section. If you had done that you might have found Parsing your script's command line which explains all.

Replies are listed 'Best First'.
Re^6: Comparision Utility PERL
by vighneshmufc (Acolyte) on Feb 09, 2018 at 10:27 UTC
    my $file1=$ARGV[0];
    my $file2=$ARGV1;
    my $file3=$ARGV2;
    my @cols = (0, 2);
    so instead of 0 and 2 i want it to be user defined so how do i declare it with this method instead of Getopt::Long and other such steps

      For those 4 variables I would do this:

      my ($file1, $file2, $file3, @cols) = @ARGV;

      But I would not use $file1, $file2, $file3 as names in the first place as they aren't all that descriptive. Perhaps $patternfile, $inputfile, $outputfile might be my choices.

      What do you have against Getopt::Long?

        i am very new to this hence learning it from easy way

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-23 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found