Phlip wrote:

>> Let's make a rubyquiz-perlquiz challenge.
> 
> Perl is not a worthy adversary.
> 
> Here's Ruby calling a method:
> 
>    foo.bar(42)
> 
> Perl calling a method:
> 
>    $foo->{bar}(42);
> 
> Oh, and what does the 42 look like inside the method? local var = unshift?

Perl calling a method will look like

$foo->bar(42);

The argument 42 inside the method will normally look like

my $whatever = shift;

You don't usually want/need "local" these days. Note that if there are a
number of arguments you might do

my ($arg1, $arg2, ...) = @_;

AHS
-- 
* change 'two' to '2' to email me