Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Both of those! $r&->f would behave something like $r && $r->f so it would call method f on the object $r if it's set, or do nothing and return undef if $r is undefined. $h{$w}&->() would look the word $w up in the hooks table %h, and if there's an entry, call it as a subref, but if there's no entry, it would just nop silently. Finally, $t{$x}&->{$y} would be like $t{$x}{$y} only it doesn't autovivify $t{$x} as a hashref if it doesn't exist. In reply to Re^2: What operator should perl5porters use for safe dereferencing? (Specification?)
by ambrus
|
|