My Perl doesn't know what strlen is. Is it part of a module?
Oops. Don't get your perl mixed up with your C, Smiddy.
I meant length($_)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Anette Seiler [[EMAIL PROTECTED]] quoth:
*
* This got me wondering. Is the behavior you see caused by limitations
* for $_, or by limitations of the print function? You might try:
* print strlen( $_ ), \n;
*
*My Perl doesn't know what strlen is. Is it part of a module?
*
*I don't think, it is
PROTECTED]
Subject: RE: How long can $_ be?
Is there some limit in how long the contents of the variable $_ can
be?
Not that I'm aware of, no.
I encounter this problem on Solaris machines running Perl 5.005. On
Windows with Perl 5.6.1. no such problem was encountered.
What could
Hi Folks,
This got me wondering. Is the behavior you see caused by limitations for $_, or by
limitations of the print function? You might try:
print strlen( $_ ), \n;
Thanks,
Smiddy
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Anette Seiler [[EMAIL PROTECTED]] quoth:
*
*From the command line I start the script with perl script.pl. Now I
*have to enter some text. I just enter any text, either by typing or by
*cutting and pasting. I do not enter any strange characters or
*newlines. I just type in some text. I even
]
SEILER@hbz-nr cc:
w.deSubject: RE: How long can
Hi Smiddy,
you wrote:
This got me wondering. Is the behavior you see caused by limitations
for $_, or by limitations of the print function? You might try:
print strlen( $_ ), \n;
My Perl doesn't know what strlen is. Is it part of a module?
I don't think, it is a limitation of the print
Hi!
Is there some limit in how long the contents of the variable $_ can
be?
The problem I have is following: my script reads a file line by line.
These lines are fairly long. As soon as I work with the long lines
problems arise. The script chops off the first part of the line. When I
print
Is there some limit in how long the contents of the variable $_ can
be?
Not that I'm aware of, no.
I encounter this problem on Solaris machines running Perl 5.005.
On Windows with Perl 5.6.1. no such problem was encountered.
What could cause the problem?
I suppose it might be a a
12, 2002 9:06 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: How long can $_ be?
Is there some limit in how long the contents of the variable $_ can
be?
Not that I'm aware of, no.
I encounter this problem on Solaris machines running Perl 5.005.
On Windows with Perl 5.6.1
PROTECTED]
Subject: How long can $_ be?
Hi!
Is there some limit in how long the contents of the variable $_ can
be?
The problem I have is following: my script reads a file line by line.
These lines are fairly long. As soon as I work with the long lines
problems arise. The script chops off the first
11 matches
Mail list logo