Oh! I see now. This:

s/\A\s+//, s/\s+\z// for my @r = @_;

is the same as

my @r = @_; s/\A\s+//, s/\s+\z// for @r;

Thanks!


In reply to Re^2: How does this code work? (from "Perl is Unix") by Anonymous Monk
in thread How does this code work? (from "Perl is Unix") by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":