Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is There a quicker way than this, or is this as good as it gets?if(defined(getpwnam($username))) { $message = $message.'<p>The Chosen Username Already Exists.</p>'; $found_err = 1; }
....and would the code for this search be quicker if the file only contained 'myusername', and no other data?Mon Jun 16 01:01:03 2003:myusername:mypassword:my@old.email:111.222.33 +3.444 Mon Jun 16 01:01:04 2003:myusername2:mypassword2:my@old.email:213.111. +231.444
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Quick User Existance Check?
by hardburn (Abbot) on Jun 25, 2003 at 17:28 UTC | |
by Anonymous Monk on Jun 25, 2003 at 20:03 UTC | |
|
Re: Quick User Existance Check?
by waswas-fng (Curate) on Jun 25, 2003 at 18:12 UTC | |
by sgifford (Prior) on Jun 25, 2003 at 18:47 UTC | |
by tilly (Archbishop) on Jun 26, 2003 at 06:11 UTC | |
by waswas-fng (Curate) on Jun 27, 2003 at 20:21 UTC | |
by tilly (Archbishop) on Jun 27, 2003 at 20:32 UTC | |
by Anonymous Monk on Jun 25, 2003 at 19:58 UTC | |
by waswas-fng (Curate) on Jun 25, 2003 at 21:17 UTC |