dserodio has asked for the wisdom of the Perl Monks concerning the following question:
How can I make it die() if it can't open $passwd? Do I need to use open() or die() ?{ local($ORS, $^I, @ARGV) = ('', '.bak', $passwd); while (<>) { if (s|($username:).*\n|$username:$pass\n|) { $foundit = 1; } print; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: local @ARGV and die() (boo)
by boo_radley (Parson) on Sep 14, 2001 at 02:52 UTC | |
|
Re: local @ARGV and die()
by runrig (Abbot) on Sep 14, 2001 at 02:53 UTC | |
by dserodio (Novice) on Sep 14, 2001 at 23:33 UTC | |
|
Re: local @ARGV and die()
by Rhandom (Curate) on Sep 14, 2001 at 09:57 UTC | |
|
(tye)Re: local @ARGV and die()
by tye (Sage) on Sep 14, 2001 at 19:29 UTC |