Please post a simple version of your code.
AND a couple of examples of the command lines that you don't seem to be able to process.
I don't know where this 256 character limit comes from.
Certainly not from Perl. In Unix, in the olden days, a fairly normal restriction would be 7 full command lines, which would be 7x80 characters or 560. More normal now would be at least 1024 or 2048 characters or even 4096 or even more than that. I don't know why you can't process a huge command line.
It is certainly possible that the shell can expand *.txt into perhaps 2,000 or many, many more file names.
Show some code and example command line inputs. With proper technique, it should be possible to say process an expanded command line with 5,000 arguments with no problem whatsoever.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.