Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Two operations with one last if?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Steve R., post: 4775810"] <posted & mailed> It's certainly "legal". It might be a bit more readable to write if (defined($searchpattern{$interestingpart})) { $splinter = $_ if $userid = $searchpattern{$interestingpart}; last; } assuming you really meant the conditional, or else just if (defined($searchpattern{$interestingpart})) { $userid = $searchpattern{$interestingpart}; $splinter = $_; last; } [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Two operations with one last if?
Top