RosettaCodeData/Task/Queue-Definition/Perl/queue-definition-1.pl

5 lines
170 B
Perl
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
use Carp;
sub mypush (\@@) {my($list,@things)=@_; push @$list, @things}
sub mypop (\@) {my($list)=@_; @$list or croak "Empty"; shift @$list }
sub empty (@) {not @_}