ruby > perl

 my $status = $self->{'status'}; $self->do_something_with($status);

 self.do_something_with(@status)

2 Responses to “ruby > perl”


  1. 1 Sam Livingston-Gray

    Seems a bit odd to be passing an instance variable to self…

  2. 2 lennon

    You’re right. A more representative line might have been like this:

    my $status = shift; my $processed = $self->process_status($status); my $self->{’status’} = $processed; return $processed;

Leave a Reply