I am having problems with the substr command.
It appears under OSX Perl the length value is being ignored.
This code worked under MacPerl with the old open statement being open
(THEFILE ,::clientd.html);.
All I changed was the open statement with a new path.
When I ask Perl OSX to print $line
I am wondering that even if you get substr to work, you probably would
have code that
is too specific and hacky. You probably want to match off of some of
the keywords,
so that if things move your program won't break.
Joe.
On Jan 5, 2005, at 3:14 PM, Albert Kaltenbaeck wrote:
I am having
On Jan 5, 2005, at 4:14 PM, Albert Kaltenbaeck wrote:
I am having problems with the substr command.
No you're not. :-)
You're barking in the wrong forest here - both the offset and length
values you passed to substr() are being used just fine. You're getting
exactly what you asked for from
At 3:14 pm -0600 5/1/05, Albert Kaltenbaeck wrote:
I am having problems with the substr command.
It appears under OSX Perl the length value is being ignored.
This code worked under MacPerl ...
Do you get the expected result when you run this ?:
$f = ClientD.html;
$/ = \n;
open F, $f or die $!;
At 22:23 + 1/5/05, John Delacour wrote:
If not then you need to consider your line endings.
And remember that MacPerl subscribes to the MPW convention that reverses the
meanings of \n and \r for the Mac.
ftp://ftp.macnauchtan.com/Software/LineEnds/FixEndsFolder.sit (52 kB)
Thank you,
with all your help I have found the issue is the HTML file I am reading
does not have unix lineends.
That is the problem.
Thanks again!
Albert
On Jan 5, 2005, at 3:14 PM, Albert Kaltenbaeck wrote:
I am having problems with the substr command.
It appears under OSX Perl the length value