Click here to get back home

How to see if a time is within two other times.

 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
How to see if a time is within two other times. Ninja67 06-29-2005
Get Chitika Premium
Posted by John Bokma on June 29, 2005, 8:36 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
time manipulation getting invalid times June 26, 2007, 10:08 am
GMT time to local time, according to timezone and summer/winter time. May 15, 2005, 10:45 pm
@ September 20, 2004, 12:29 pm
How to write to the same XML file at different times of the day? December 12, 2005, 5:31 pm
adding a string ~300 times July 28, 2006, 4:29 pm
how to call exec multi-times... September 21, 2005, 12:34 am
comparing modification times of files September 13, 2006, 11:10 am
comparing two times using Date::Manip November 29, 2006, 9:10 am
Negative times in Spreadsheet::WriteExcel? June 5, 2007, 7:49 am
Calculating time of employee session from the log date/time stampusing perl May 24, 2005, 5: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