Operators define their own parsing rules. Some of these can be approximated using prototypes.
sub my_push(\@@) { my $ref = shift; push @$ref, @_; return 0+@$ref; } my @a = (1..4); my_push(@a, 5); print "@a\n"; # 1 2 3 4 5
In reply to Re: technique of push
by ikegami
in thread technique of push
by saranperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |