Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Okay I am going to be really technical here don't mean to throw off anyone and I am not trying to brag...

I am trying to do ordering of numbers that are in the end of a list of data

So I am trying to use PERL SORT:
SORT [/R] [/+n] [[drive1:][path1]filename1] [> [drive2:][path2]filena +me2] [command |] SORT [/R] [/+n] [> [drive2:][path2]filename2]
This seems to be the syntax which is easy for me to figure out cause I am an old hacker! What I don't get is the perl part of it

#!/usr/bin/perl use strict; OPEN "filename"/n"; COUNT |||||| #this counts spaces over in the list SORT /R #this sorts my data
This spews all kinds of computer generated errors....
Bareword "COUNT" not allowed while "strict subs" in use at ./order.pl +line 5. syntax error at ./ray.pl line 5, near "||||" Bareword "SORT" not allowed while "strict subs" in use at ./order.pl l +ine 6. Bareword "R" not allowed while "strict subs" in use at ./order.pl line + 6. Execution of ./ray.pl aborted due to compilation errors. Bareword "OPEN" not allowed while "strict subs" in use at ./order.pl l +ine 5. String found where operator expected at ./order.pl line 5, near "OPEN +"filename"" (Do you need to predeclare OPEN?) syntax error at ./order.pl line 5, near "OPEN "filename"" Bareword "n" not allowed while "strict subs" in use at ./order.pl line + 5. String found where operator expected at ./order.pl line 5, at end of l +ine (Missing semicolon on previous line?) Can't find string terminator '"' anywhere before EOF at ./order.pl lin +e 5.
I know this is pretty technical but if anyone out there could offer some tips ..I am not trying to "compile" anything either so these errors don't make much sense to me

Unconsidered for reap - Votes: Keep: 11, Edit: 0, Reap: 9


In reply to question about ordering technical data numbers by Kevin_Raymer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others making s'mores by the fire in the courtyard of the Monastery: (14)
    As of 2014-07-23 21:13 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite superfluous repetitious redundant duplicative phrase is:









      Results (152 votes), past polls