Click here to get back home

Permission denied at C:/Perl/site/lib/XML/Handler/YAWriter.pm line 43.

 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
Permission denied at C:/Perl/site/lib/XML/Handler/YAWriter.pm line 43. Piet L. 02-24-2005
Get Chitika Premium
Posted by Piet L. on February 24, 2005, 12:59 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 Brian McCauley on February 24, 2005, 1:49 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
new IO::Socket::INET + UDP/Broadcast = Permission denied ?? Why? March 9, 2005, 2:20 pm
IIS calling cscript.exe from cgi permission denied - WMI access April 11, 2005, 5:12 am
Problem Creating Socket : Permission Denied August 20, 2007, 11:23 am
Permission denied trying to execute shell commands from Perl/CGI. August 22, 2006, 3:00 pm
Permission Denied error when moving files - Perl November 10, 2006, 12:13 pm
copy stdout fails with permission denied when stdout is redirected December 7, 2005, 1:15 pm
access denied April 24, 2006, 5:56 pm
savely change permission and group on files February 22, 2006, 7:10 am
Siimple solution to "Access denied" problem with WinXP-apache-perl-cgi August 25, 2006, 10:20 am
Beginner: read $array with line breaks line by line August 27, 2006, 9:40 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap