Click here to get back home

Re: What's wrong with my installation

 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
Re: What's wrong with my installation A. Sinan Unur 09-02-2006
Posted by A. Sinan Unur on September 2, 2006, 6:14 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 Matt Garrish on September 2, 2006, 7:12 pm
Please log in for more thread options

A=2E Sinan Unur wrote:

> @nospam.com:
>
> > Michael avait pr=E9tendu :
> >> Problem solved. cuz I need to save it to pl instead of plx.
> >>
> >> Thanks!
> >
> > lol, I had the same error.
>
> How is using .plx rather than .pl an error? Learn to use the OS you prefer
> to use.
>

Since no one's actually mentioned why that's bad... .plx is
ActiveState's extension for running the perlex dll from IIS. If you
give your scripts that extension in Windows and don't explicitly call
the perl.exe interpreter the registry lookup will result in the dll
being used, which will not provide the results one expects.

Matt


Similar ThreadsPosted
What's wrong with my installation September 2, 2006, 11:08 am
Perl 5.8.8 installation help on AIX 5.1 May 25, 2006, 6:08 pm
MSI file installation November 12, 2006, 11:48 pm
module installation February 16, 2008, 9:21 pm
Need help - Perl-5.8.5 installation error October 15, 2004, 10:25 am
module installation trouble February 11, 2005, 11:02 am
Web Application Installation Script February 21, 2005, 9:35 pm
Installation of Perl/Tk under Solaris 5.8 February 23, 2005, 9:16 am
Installation of Data::Dumper June 10, 2005, 2:41 am
What is a dependency? - Installation problem July 6, 2005, 6:17 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap