Home > Archive > PERL Beginners > January 2006 > is there a limit for a perl skriptline?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
is there a limit for a perl skriptline?
|
|
| .rhavin grobert 2006-01-31, 7:55 am |
| in order to save some space on one of my domains (yes, every byte
matters;-) i just wrote a skript (OK, a regex...) to remove all
comments, unneccessary whitespaces, tabs, newlines, etc. from my cgi's.
OK, the skript's almost unreadable now, but it's just the copy running
in the web.
It works fine but to be shure i just want to know if anyone experienced
problems with
"very-long-oneliners" or if there is any limit for the linelenght of a
skript on some systems. As far as i can see it works on active
perl/WinXP but i've read about a linelimit of 1024Byte for some shells.
- but, if i start a script that comes out of a file on harddisk, the
shell is just involved starting perl - or am i wrong? Of course it
would be easy to split the final skript each 1024th Byte, i just want
to know if its neccessary...
I also want to do the same with the output, that is...
content: text/html\n\n
[one very long line]\n
has anyone heard of a problem with it?
thanx for sharing your thoughts...
..rhavin;-)
| |
| usenet@DavidFilmer.com 2006-01-31, 7:55 am |
| ..rhavin grobert wrote:
> but i've read about a linelimit of 1024Byte for some shells.
> - but, if i start a script that comes out of a file on harddisk, the
> shell is just involved starting perl - or am i wrong?
Indeed, shells have command length limits, so crafting very-long
argument lists to Perl scripts can be hazardous.
But Perl itself isn't so constrained. You are correct that Perl can
read very large files (even huge one-line files) to gather input data.
So you are correct on both points.
--
http://DavidFilmer.com
|
|
|
|
|