G
geek
Hi all,
I am getting following error when I try to run the script a part of
which is shown below.
Error:<PRE>syntax error at sem_reg_test.cgi line 192, near "|| die
"$0"
Any help will be appreciated.
Thanks,
MJ
=========================================================================
else {
open(COURSEINFO,$coursefile)
|| die "$0: Could not read course information ($coursefile):
$!\n";
# flock(COURSEINFO, 1);
while (<COURSEINFO>) {
# remove trailing newline
chomp;
# save comments and blank lines
if (/^#/ || /^\s*$/) {
push(@courses_new, $_);
next;
}
I am getting following error when I try to run the script a part of
which is shown below.
Error:<PRE>syntax error at sem_reg_test.cgi line 192, near "|| die
"$0"
Any help will be appreciated.
Thanks,
MJ
=========================================================================
else {
open(COURSEINFO,$coursefile)
|| die "$0: Could not read course information ($coursefile):
$!\n";
# flock(COURSEINFO, 1);
while (<COURSEINFO>) {
# remove trailing newline
chomp;
# save comments and blank lines
if (/^#/ || /^\s*$/) {
push(@courses_new, $_);
next;
}