# New Ticket Created by  "John Gabriele" 
# Please include the string:  [perl #112718]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=112718 >


Using R* 2012-04 on Lubuntu 12.04.

This (weird-error.pl):

~~~
#!/usr/bin/env perl6

my $whole_enchilada = slurp 'foo.txt';
say ">>>$whole_enchilada<<<";
say '-' x 42;

#my @lines = slurp 'foo.txt';

# for @lines -> $line {
#     say ">>>$line<<<";
# }
~~~

fails, telling me:

~~~
===SORRY!===
Variable $line is not declared
at ./weird-error.pl:10
~~~

and if I remove the commented out code (weird-error-2.pl):

~~~
#!/usr/bin/env perl6

my $whole_enchilada = slurp 'foo.txt';
say ">>>$whole_enchilada<<<";
say '-' x 42;
~~~

I get a different error:

~~~
===SORRY!===
Missing << or >>
at ./weird-error-2.pl:4
~~~

---John

Reply via email to