Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This is where i am stuck. What is the best way to put the @buffer array with all the unused codes back into the code pool or mark them as used? Thanksopen (DB, "<".$codes_db) || die ("Can't open $codes_db"); while (<DB>) { &cleanData($_); # this removes white space push(@buffer, $_) unless ($_ eq $code); } close (DB) || die ("Can't close $codes_db");
2006-11-15 Retitled by planetscape, as per Monastery guidelines
Original title: 'Help with codes'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing records in a text file
by friedo (Prior) on Nov 15, 2006 at 16:47 UTC | |
|
Re: Changing records in a text file
by davorg (Chancellor) on Nov 15, 2006 at 16:45 UTC | |
by Anonymous Monk on Nov 15, 2006 at 16:48 UTC | |
|
Re: Changing records in a text file
by madbombX (Hermit) on Nov 15, 2006 at 17:12 UTC | |
|
Re: Changing records in a text file
by SheridanCat (Pilgrim) on Nov 15, 2006 at 17:14 UTC | |
by NiJo (Friar) on Nov 15, 2006 at 19:58 UTC |