Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Is there a limit on STDIN string size 259?

by blakem (Monsignor)
on Nov 15, 2001 at 09:51 UTC ( [id://125515]=note: print w/replies, xml ) Need Help??


in reply to Is there a limit on STDIN string size 259?

hmm.. it works fine on my machine... does this work for you?
(you should surround your code with <code> tags..)
% perl -e 'print join(" ",map $_->[0]x$_->[1], (["a",64],["b",64],["c" +,65],["d",65]))' | perl -e '$_=<STDIN>; foreach(split){print "$_\n"}' =head1 OUTPUT aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd

-Blake

Replies are listed 'Best First'.
Re:{2} Is there a limit on STDIN string size 259?
by jeroenes (Priest) on Nov 15, 2001 at 13:19 UTC
    blakem, I think he ment that this was the largest string he could handle. For good measure, I ran your line with the numbers 274,74,85,85 and it works on my box.

    I repeated this with yesterdays framechat log (nice and long textfile):

    perl -e '$a=join "", <STDIN>; $a=~tr/\n/ /s; print $a'\ </tmp/20011113.txt | \ perl -e '$_=<STDIN>; foreach(split){print "$_\n"}' | less
    Works. Would this mean that there is an issue with the solaris shell?

    Jeroen

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://125515]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found