Click here to get back home

perl encryption tutorials

 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 encryption tutorials sparkane 03-28-2007
Get Chitika Premium
Posted by sparkane on March 28, 2007, 10:47 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
More perl tutorials January 21, 2008, 1:28 pm
In search of Perl tutorials. August 23, 2005, 3:46 pm
Good online tutorials on Perl November 1, 2005, 3:31 pm
Perl for data encryption February 5, 2005, 5:55 am
Perl code encryption March 9, 2005, 12:56 pm
What's on at APL 2007, Montreal, October 21, (Tutorials) 22,23 (Program) August 31, 2007, 2:07 am
download ebooks,softwares,students tutorials here for free!! February 28, 2008, 12:03 am
encryption January 3, 2006, 12:33 pm
PDF API for password encryption? February 4, 2008, 9:57 am
simple encryption/decryption January 18, 2005, 4:27 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap