List Info

Thread: Re: CHOMP leaving whitespace




Re: CHOMP leaving whitespace
country flaguser name
United States
2007-09-21 15:27:51

----- Original Message ----

> Now, this script worked fine when I was running it under Perl on my
> own machine (Windows XP) but when I convert it to CGI and upload it to
> my site (Apache run) I start having this problem. I can make it work
> if I use CHOP but I know that I shouldn't have to do it that way.

What OS is your Apache running on? If is non-Windows you might have to convert the text file to Unix endings before uploading the file.

Just a thought,

Bob

__._,_.___
.

__,_._,___
Re: CHOMP leaving whitespace
country flaguser name
United States
2007-09-22 08:48:20

Hi,

My host's Apache is running on Unix. I am very unfamiliar with Unix (I
don't intend to stay that way). How do I go about converting my files
or is it just as easy to use CHOP and forget about it?

Thanks
Andy

--- In perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com, Bob Kardell <bobkardell...> wrote:
&gt;
> ----- Original Message ----
>
> > Now, this script worked fine when I was running it under Perl on my
> > own machine (Windows XP) but when I convert it to CGI and upload
it to
> > my site (Apache run) I start having this problem. I can make it work
> > if I use CHOP but I know that I shouldn't have to do it that way.
>
> What OS is your Apache running on? If is non-Windows you might have
to convert the text file to Unix endings before uploading the file.
&gt;
> Just a thought,
>
> Bob
>

__._,_.___
.

__,_._,___
Re: CHOMP leaving whitespace
country flaguser name
United States
2007-09-22 10:21:32

Try with this:

dos2unix datafile

You can get the complete list of options by

dos2unix --help

On 9/22/07, Andy Schafer < lostgameparts%40yahoo.com">lostgamepartsyahoo.com> wrote:
&gt;
> Hi,
>
> My host's Apache is running on Unix. I am very unfamiliar with Unix (I
> don't intend to stay that way). How do I go about converting my files
&gt; or is it just as easy to use CHOP and forget about it?
>
> Thanks
&gt; Andy
>;
>
> --- In perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.com <perl-beginner%40yahoogroups.com>,
> Bob Kardell <bobkardell...> wrote:
&gt; >
>; > ----- Original Message ----
>; >
>; > > Now, this script worked fine when I was running it under Perl on my
> > > own machine (Windows XP) but when I convert it to CGI and upload
&gt; it to
> > > my site (Apache run) I start having this problem. I can make it work
>; > > if I use CHOP but I know that I shouldn't have to do it that way.
>; >
>; > What OS is your Apache running on? If is non-Windows you might have
>; to convert the text file to Unix endings before uploading the file.
&gt; >
>; > Just a thought,
> >
>; > Bob
> >
>;
>
>

--
---------------------------------------------
Mg. Hernán Gonzalo Asorey
Instituto Balseiro - CAB
(8400) San Carlos de Bariloche
Río Negro - Rep. Argentina
---------------------------------------------
cabtep5.cnea.gov.ar/~asoreyh/

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )