Click here to get back home

Perl on freebsd: max memory limit?

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Perl on freebsd: max memory limit? John Bokma 02-10-2005
Get Chitika Premium
Posted by John Bokma on February 10, 2005, 7:25 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Posted by Arndt Jonasson on February 11, 2005, 11:07 am
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Posted by John Bokma on February 11, 2005, 7:01 pm
Please log in for more thread options
>>
>> [snip]
>>
>> > if I print "$1\n",
>> > the file prints just fine. But, if I do something like print "$1 after
>> > \n", the whole output is messed up. If I print "before $1\n", nothing
>> > prints at all. If I print "before $1 after\n", only after prints.
>>
>> not really sure, but could be a rogue "\r" in $1,


> There
> is a rogue carriage return (0xd) in the string

> Is there something I can do to deal with this
> situation?


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
How to set a HARD memory limit for apache February 29, 2008, 9:30 am
perl and GDBM and FreeBSD February 8, 2005, 10:19 am
sprintf rounding with FreeBSD and perl 5.8.x January 24, 2008, 11:51 am
Cannot compile working perl on freebsd / amd64 December 10, 2004, 12:51 am
Failed Xmms-Perl-0.12 build on FreeBSD 5.4-stable July 18, 2005, 7:20 am
DBD::SQLite FreeBSD install August 30, 2007, 10:51 pm
File Size Limit in Archive::Perl November 10, 2007, 6:34 am
File::Find in FreeBSD msdosfs mounts August 14, 2004, 9:37 pm
perk 5.8.5 forking causes userland crash on FreeBSD September 23, 2004, 9:49 am
how to manage phpBB, windows 2003 server and FreeBSD user accounts simultaneously. November 29, 2004, 9:18 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap