Re: die not working

2002-11-07 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Colin Johnstone) writes: >Gidday all, > >I assume when using die in this format I should see the error message. > >#!/usr/bin/perl > >use CGI qw( :standard ); > >print header(); >$file1 = /web/schooled/www/news/subscribers_news1.txt > >open IN, "<

RE: die not working

2002-11-06 Thread Scott, Joshua
1:25 PM To: 'Nikola Janceski' Cc: '[EMAIL PROTECTED]' Subject: RE: die not working Thanks Nicola, it didn't work though I get this error now. Software error: syntax error at /web/schooled/cgi-bin/optin.cgi line 36, next char ) Execution of /web/schooled/cgi-bin/optin.cgi

RE: die not working

2002-11-06 Thread Johnstone, Colin
$record); $subscribers1{$data[0]} = $data[1]; } close IN; -Original Message- From: Nikola Janceski [mailto:nikola_janceski@;summithq.com] Sent: Thursday, November 07, 2002 08:20 To: Johnstone, Colin; '[EMAIL PROTECTED]' Subject: RE: die not working add this: use CGI::Carp '

RE: die not working

2002-11-06 Thread Nikola Janceski
add this: use CGI::Carp 'fatalsToBrowser'; > -Original Message- > From: Johnstone, Colin [mailto:Colin.Johnstone@;det.nsw.edu.au] > Sent: Wednesday, November 06, 2002 4:18 PM > To: '[EMAIL PROTECTED]' > Subject: die not working > > > Gidd

die not working

2002-11-06 Thread Johnstone, Colin
Gidday all, I assume when using die in this format I should see the error message. #!/usr/bin/perl use CGI qw( :standard ); print header(); $file1 = /web/schooled/www/news/subscribers_news1.txt open IN, "<$file1" or die("Cannot Open: $!"); while( my $record = ){ chomp $record; @data = spl