in reply to -w more than a warning?
Since the carriage return has to be treated as if it were a normal ASCII byte, it's looking for the binary perl^M to execute your script, not perl. Thus, you get "not found".#!/usr/bin/perl^M
The fix: Transfer the file again correctly, dropping the carriage returns. Alternatively, you can use the search/replace feature in, say, vi, to strip them out: :%s/^V^M//g (where the ^V is a control-V (quote the next character) and the ^M is a control-M), or use something similar in a Perl one-liner.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jcwren) Re: (2) -w more than a warning?
by jcwren (Prior) on Oct 24, 2000 at 18:23 UTC | |
by tye (Sage) on Oct 24, 2000 at 18:31 UTC | |
by converter (Priest) on Oct 24, 2000 at 19:27 UTC | |
|
RE: Re: -w more than a warning?
by jptxs (Curate) on Oct 24, 2000 at 18:19 UTC |