On 23/10/2007, James Keenan via RT <[EMAIL PROTECTED]> wrote:
> While examining this file for the purpose of writing tests, I noticed
> that it uses Perl's special variable $/ in 6 instances where a newline
> would suffice.
>
> [parrot] 504 $ grep -n '$/' config/auto/attributes.pm
> 54:    print $/ if $verbose;
> 67:    $verbose and print "trying attribute '$attr'$/";
> 83:    $verbose and print "  ", $command_line, $/;
> 88:    $verbose and print "  exit code: $exit_code$/";
> 95:    $verbose and print "  output: $output$/";
> 100:        $verbose and print "  ccflags: $ccflags$/";
>
> Why?
>
> i.e., Why we do we need this here when "\n" suffices everywhere else in
> the Parrot distribution?

Just for completeness (I've already answered this question in other
emails/tickets), this code was originally added by Andy Lester afaik,
and I just copied the idiom into other test files.  If there's no good
reason to keep it then make it a newline.

Paul

Reply via email to