|
Ninjew posted:
Nice clarification. Also, whether or not your language supports closures, the concept of passing subroutines (or subroutine references) as variables is properly termed "higher-order programming".
|
# ¿ Oct 25, 2007 19:38 |
|
|
# ¿ Apr 30, 2024 01:41 |
|
TiMBuS posted:But then I would have to undef $\ when using print for other needs. =( code:
|
# ¿ Jan 15, 2008 20:15 |
|
satest4 posted:A subroutine definition can refer to variables that exist in the surrounding scope. That sort of thing is called a closure.
|
# ¿ Sep 22, 2008 18:02 |
|
ashgromnies posted:loving ace. I always forget about queues working in Perl all the time perlmodlib(1)
|
# ¿ Nov 1, 2008 21:15 |
|
Not a short question, but Perl was released 21 years ago today. Yay Perl!
|
# ¿ Dec 19, 2008 03:28 |
|
Sartak posted:Found an interesting bug today at work. It would have slipped under my nose if other parts of the code had looser validation. What's the bug? if $is_special{$type} is true then $1 was preserved from the most recent regex match instead of being undefined or something, right?
|
# ¿ Feb 3, 2009 01:08 |
|
Triple Tech posted:Does the bitwise-and bind too tightly causing you to regexp bind on a "1"?? =~ binds tighter than &&. See perlop(1). And && is not a bitwise AND.
|
# ¿ Feb 3, 2009 01:14 |
|
|
# ¿ Apr 30, 2024 01:41 |
|
FeloniousDrunk posted:
Read the perlvar(1) documentation under $;.
|
# ¿ Mar 4, 2009 17:27 |