I am facing strange compilation errors while doing Perl scripting:
Example: suppose my code contain
my $line=1;
call_fun($line); // call_fun is a function
my $line1=2;
It is not showing any compilation error ... but suppose if I am putting a new line char in between "my $line=1;" and "call_fun($line);" then it is showing me the compilation error...!!
like:
my $line=1;
call_fun($line); // call_fun is a function
my $line1=2;
This kind of absurd errors most of the time I am facing if I am putting new lines or legal spaces or statements..
Anyone ever have faced such problem??
Is it due to some perl configuration problem??
Hey no no...! I just put '//' for general purpose.. not in scripting:)..
This is a real issue... I am facing
I am using Notepad++ editor to write/ftp into unix box. The Perl script I have written is very large and contains HTML code inside. Whenever I am changing something like putting a line in between two lines it is throwing me some absurd error.
Make sure to transfer the file in ASCII (or text) mode and your ftp application should convert Windows style newlines into Unix newlines automatically. Otherwise the Windows style \r\n newlines might cause problems on the Unix server.