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
[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
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
syntax error at ./ray.pl line 5, near "||||"
Bareword "SORT" not allowed while "strict subs" in use at ./order.pl l
Bareword "R" not allowed while "strict subs" in use at ./order.pl line
Execution of ./ray.pl aborted due to compilation errors.
Bareword "OPEN" not allowed while "strict subs" in use at ./order.pl l
String found where operator expected at ./order.pl line 5, near "OPEN
(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
String found where operator expected at ./order.pl line 5, at end of l
(Missing semicolon on previous line?)
Can't find string terminator '"' anywhere before EOF at ./order.pl lin
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
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:
Outside of code tags, you may need to use entities for some characters:
- 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
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||