|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re^2: why not listed foreach and if?by LanX (Saint) |
| on Jul 28, 2025 at 16:50 UTC ( [id://11165839]=note: print w/replies, xml ) | Need Help?? |
|
> But in Perl, we do: > statement if (condition); > It's weird, but one can get used to it. I think nobody mentioned it yet in this thread, but Perl allows you to write CONDITION and STATEMENT and I think it's even a C'ish idiom.
EDITyep works in JS too 1 && console.log("yes")
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||