in reply to Re: max and min values in 3-column file
in thread max and min values in 3-column file

Thanks for all of your replies. Yes, column 1 shows the frequency of the value in column 1. Could you please show me how to load my txt.file into your script, so that I can actually try it. I tried to do it the way I did it with my last script, but it somehow doesn't work. And as mentioned I am such a beginner in Perl that I don't know any other ways of how to upload txt files yet... Thanks so much to all of you for trying to help me!
  • Comment on Re^2: max and min values in 3-column file

Replies are listed 'Best First'.
Re^3: max and min values in 3-column file
by tospo (Hermit) on Feb 07, 2011 at 09:48 UTC
    If you see a loop like
    while (<>){ ... }
    then it means that the script is reading from STDIN (standard input). You now need to find out how to compose a command line that passes your file on STDIN to the perl script, which is a nice little exercise... :)
    One of the solutions posted here used a DATA block at the end of the script, i.e. there is a signal to tell the perl interpreter that the rest of the file is not Perl code but data and the while loop reads from the data block line by line instead of STDIN.