Click here to get back home

Re: Passing parameters from one Perl script to another

 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: Passing parameters from one Perl script to another Jürgen Exner 02-18-2007
Get Chitika Premium
Posted by Jürgen Exner on February 18, 2007, 1:16 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
Passing parameters from one Perl script to another February 18, 2007, 12:34 pm
passing parameters from xsl to cgi script November 23, 2004, 1:11 pm
passing parameters to a perl prgram using getopts January 23, 2007, 6:05 am
passing parameters to a perl prgram using getopts January 23, 2007, 6:05 am
problem in passing parameters in function defined in perl module June 29, 2005, 7:28 pm
perl script with parameters (using xml) November 8, 2004, 10:10 pm
Accessing Single Parameters in Perl Script March 23, 2005, 3:41 pm
opening file with parameters from perl script August 2, 2006, 10:27 pm
passing arguments to a shell script from a perl script December 7, 2007, 2:44 pm
Problem in passing values to perl script using another perl script August 10, 2005, 12:32 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap