more useful options | |
PerlMonks |
Re: perl callable from bash?by ig (Vicar) |
on Apr 13, 2009 at 01:20 UTC ( [id://757141]=note: print w/replies, xml ) | Need Help?? |
Maybe your scripts (firstscript and secondscript) have <CR><LF> line terminations instead of the usual (on unix) <LF> line termination. That might explain the first of your error messages. The second error message, beginning without an opening single quote and with the text ".links" is a bit more puzzling. One way to see what your line terminations are is to use the "od" command. For example, in the following, each line ends with "\r\n".
After converting the line endings, it appears as follows:
Now the lines end with "\n" only. Depending on your unix installation, you may have a command "dos2unix". I used the vim editor. You might also be able to use the "tr" command as "tr -d '\r' <file.old >file.new" How did you create your perl script files?
In Section
Seekers of Perl Wisdom
|
|