Re: perl 6 equivalent of "use warnings"

2017-01-11 Thread Siavash

Hi,

>From https://docs.perl6.org/language/5to6-nutshell#warnings

"Warnings are now on by default.

no warnings is currently NYI, but putting things in a quietly {} block will 
silence."

On 2017-01-12 03:42:22 GMT, ToddAndMargo wrote:
> Hi All,
>
>  Is there a perl 6 equivalent of perl 5's "use warnings"?
>
> Many thanks,
> -T


Re: perl 6 equivalent of "use warnings"

2017-01-11 Thread Brandon Allbery
Instead of enabling warnings, you disable them on a case by case basis with
"quietly" e.g. perl6 -e 'my $foo; quietly say "is $foo"'. Likewise,
"strict" is the default.

On Thu, Jan 12, 2017 at 12:12 AM, Lloyd Fournier 
wrote:

> Nope. Perl6 warns you without asking for it.
>
> LL
>
> On Thu, Jan 12, 2017 at 2:43 PM ToddAndMargo 
> wrote:
>
> Hi All,
>
>  Is there a perl 6 equivalent of perl 5's "use warnings"?
>
> Many thanks,
> -T
>
>


-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net


Re: perl 6 equivalent of "use warnings"

2017-01-11 Thread Lloyd Fournier
Nope. Perl6 warns you without asking for it.

LL

On Thu, Jan 12, 2017 at 2:43 PM ToddAndMargo  wrote:

Hi All,

 Is there a perl 6 equivalent of perl 5's "use warnings"?

Many thanks,
-T


perl 6 equivalent of "use warnings"

2017-01-11 Thread ToddAndMargo

Hi All,

Is there a perl 6 equivalent of perl 5's "use warnings"?

Many thanks,
-T