in reply to Print all derefs and method calls in a directory (Friday golf)
It only picks up -> derefs but everyone here seems to code that way, so it's a win for me.
I don't believe that's true. I do
for (@$list) { ... }
and
for (keys %$table) { ... }
and
$grid[$x][$y]
regularly. I even do
our $buf; local *buf = $ref;
often enough. All of those contains derefs. Three of them aren't even possible to do with the arrow.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print all derefs and method calls in a directory (Friday golf)
by jepri (Parson) on Jan 09, 2009 at 05:08 UTC | |
by ikegami (Patriarch) on Jan 09, 2009 at 05:46 UTC | |
by jepri (Parson) on Jan 09, 2009 at 10:29 UTC | |
by ikegami (Patriarch) on Jan 09, 2009 at 10:33 UTC |