in reply to Re: reading file into an array
in thread reading file into an array
Results:open (FILE, "> redo-output.txt") or die "Error: $!"; foreach (@lines) { print FILE "$_\n"; } close(FILE);
Instead of:# Since the submit button was pushed, we have to check to see if t +he username # they typed exists. $passwords is actually the hash we made earl +ier, but since # we are using just ONE value we call our passwords hash as a scal +ar: $passwords. # To lookup a hash key to see if it exists, you use: if (exists $h +ash{"key"}) {}.
# Since the submit button was pushed, we have to check to see if the u +sername # they typed exists. $passwords is actually the hash we made earlier, + but since # we are using just ONE value we call our passwords hash as a scalar: +$passwords. # To lookup a hash key to see if it exists, you use: if (exists $hash{ +"key"}) {}.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: reading file into an array
by Zaxo (Archbishop) on Jun 01, 2004 at 00:03 UTC | |
|
Re: Re: Re: reading file into an array
by Somni (Friar) on Jun 01, 2004 at 00:09 UTC |