Click here to get back home

problem in loading perl plugin into Eclipse

 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
problem in loading perl plugin into Eclipse Murugesh 07-14-2006
Get Chitika Premium
Posted by Murugesh on July 14, 2006, 5:32 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 Robert Hicks on July 14, 2006, 8:31 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 =?ISO-8859-1?Q?S=E9bastien_Cot on July 14, 2006, 10:34 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
Perl on Eclipse, EPIC April 3, 2008, 6:59 am
Catalyst::Plugin::I18N::DBIC problem i_default October 3, 2007, 11:26 am
Kate Plugin for Perl? October 10, 2006, 12:43 am
Template::Plugin::GD - drawing graph August 15, 2006, 12:14 am
How do you use HTML::Widget::Plugin::Combo ? September 6, 2007, 9:28 pm
FYI - How to add CPAN as a search plugin for Firefox April 2, 2008, 1:42 pm
Question about regex (nagios plugin) September 30, 2008, 2:29 am
is there any "hello-world" demo for plugin-based application? December 31, 2007, 12:20 am
How to: Build Dynamic loading Perl October 1, 2004, 8:32 am
dynamically loading perl modules December 30, 2006, 2:55 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap