Ming has asked for the wisdom of the Perl Monks concerning the following question:
use CGI qw(:standard); if(param('delete')) { $lineNum = param('delete'); open(FILE, "$filename"); @lines = <FILE>; close(FILE); splice(@lines, $lineNum, 1); open(FILE, ">$filename"); print FILE (@lines); close(FILE); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI parameter of 0 behaving strangely
by hardburn (Abbot) on Jun 12, 2003 at 15:48 UTC | |
by Ming (Acolyte) on Jun 12, 2003 at 16:15 UTC | |
|
Re: CGI parameter of 0 behaving strangely
by edan (Curate) on Jun 12, 2003 at 15:48 UTC |