in reply to Program only writes last information entered (was Writing and writing and writing)
UPDATE: Another alternative, which would make this sort of program a lot easier to use: some Tk widgets. E.g. a pair of radio buttons for business vs. personal, four entry boxes for the names and address stuff, a "Store it" button, an "Exit" button... heck, why not a "Show list" button with a pop-up text widget, so the user can see who's on the list already. More features will come to mind (this can become addictive). You do have the Tk modules, don't you?my @lines; my $quit = 0; ... until ($quit ) { ... push( @lines, ... ); $quit = ( $ans =~ /^n/i ); } foreach (@lines) { ... write ADDRESS; }
|
|---|