Click here to get back home

ERROR: creation of Perl function failed: 'require' trapped by operation mask

 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
ERROR: creation of Perl function failed: 'require' trapped by operation mask Electrorog 05-14-2006
Get Chitika Premium
Posted by Electrorog on May 14, 2006, 5:26 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

Posted by Ch Lamprecht on May 15, 2006, 5:26 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

Similar ThreadsPosted
Socket creation failing with "operation now in progress" error April 16, 2007, 8:17 pm
[networking] Convert subnet mask <=> mask length July 28, 2004, 5:18 pm
make: Fatal error: Command failed for target `test_dynamic' June 30, 2005, 11:05 am
make: Fatal error: Command failed for target `Oracle.o' February 14, 2006, 4:32 pm
HTTP::Proxy Error: "Getting request failed: Client closed" January 19, 2007, 11:25 pm
How to view error messages within a function March 8, 2005, 11:27 am
parameter error during function call November 15, 2008, 3:21 am
Activestate Perl and CR/NL in file creation August 18, 2005, 8:02 am
Perl Object Creation problem... June 29, 2006, 6:31 am
temp file creation in perl 5.0 May 9, 2007, 10:05 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap