Trihedralguy has asked for the wisdom of the Perl Monks concerning the following question:
The variables at the top are the results of the form input. Please tell me what im doing wrong.my (@delete, @userid, @username); $delete[$subcounter] = param("Delete"); $userid[$subcounter] = param("userid"); $username[$subcounter] = param("username"); my $othercount = 1; while (@personal[$othercount]) { if ($personal[$othercount] eq $username[$othercount]) { $personal[$othercount] = ''; } else { } $othercount++; } my $str = ''; $str = join('require user', $personal[1], $personal[2], $personal[3], +$personal[4], $personal[5], $personal[6], $personal[7], $personal[8], + $personal[9], $personal[10]); open FILE, ">.htaccess"; print FILE $str; close FILE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading in and writing files
by GrandFather (Saint) on Jun 11, 2007 at 20:49 UTC | |
|
Re: Reading in and writing files
by Popcorn Dave (Abbot) on Jun 12, 2007 at 06:12 UTC | |
|
Re: Reading in and writing files
by Trihedralguy (Pilgrim) on Jun 11, 2007 at 19:57 UTC | |
|
Re: Reading in and writing files
by aquarium (Curate) on Jun 12, 2007 at 03:24 UTC |