Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here is the code i have wrote to split the username/password fields, but it doesn't seem to be working:username1:password1 username2:password2 username3:password3 username4:password4
...but it anint working :(#!/usr/bin/perl open USRS, "users" or die "can't open file: $!"; my @users = <USRS>; foreach $user (@users) { chomp $user, $pass; # do stuff with $user and $pass } close USRS;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: no good a chomping
by Bilbo (Pilgrim) on Jun 13, 2003 at 10:06 UTC | |
by EvdB (Deacon) on Jun 13, 2003 at 10:30 UTC | |
|
Re: no good a chomping
by broquaint (Abbot) on Jun 13, 2003 at 10:10 UTC | |
by Skeeve (Parson) on Jun 13, 2003 at 12:03 UTC | |
by Lachesis (Friar) on Jun 13, 2003 at 12:13 UTC |