|
|
| There's more than one way to do things | |
| PerlMonks |
Re^2: why not listed foreach and if?by marto (Cardinal) |
| on Feb 02, 2025 at 08:15 UTC ( [id://11163909]=note: print w/replies, xml ) | Need Help?? |
|
"I am surprised that Perl requires me to put the statement in front of if rather than after. For me, it would be more logical to put the statement after in this case" Except you've posted perl code doing exactly that, if ( condition ) { ... }.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||