in reply to Re: File Parsing
in thread File Parsing

>Is this a Perl question? I am asking because you seem to be talking about $1, $2, ... as being the result of a split operation, but this is not the case in Perl, where $1, $2, ... occur in a totally different context (regex matches). S1, $2, etc. appear in the split context in other languages such as awk, but I doubt awk is the right tool to sort version numbers.

I would hope that any Perlmonk knowing awk would have know what is being meant here. I had no trouble "parsing" the intent. Just saying.

Replies are listed 'Best First'.
Re^3: File Parsing
by Laurent_R (Canon) on Jun 23, 2014 at 06:36 UTC
    Well, understanding the intent was not the problem, but reading the OP, I was truly wondering whether the poster really wanted to do it in Perl. Besides, assuming the OP wanted to do it in Perl, I thought it was useful to remind the OP that the split does not store its results into $1, $2, etc.

    In addition, I have taken the time to provide actual code to solve the solution, so that I would think the OP does not have to complain about my post.

      Dear Laurent, many thanks to yourself and others for your most noble efforts.

      But I do believe the most effective manner is : Debian::Dpkg::Version

      I did not know the right question to ask the Oracle of CPAN.

      I am an humble bookseller, not an enlightened programmer.

      So I frequently have found need to Perl to manage my database scripts, and found it a wunderful tool, as well as an iinstructive one.

      The project would surely be a Perl effort. Actually i know it better than AWK!

      What is there not to love about it, It has everything, inclusing GOTO. The passage of time has diminished my grief over line numbers.