in reply to A meditation on the naming of perl6

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^2: A meditation on the naming of perl6
by karlgoethebier (Abbot) on Jul 10, 2017 at 17:45 UTC
    #!/usr/bin/env perl # $Id: practical_perl.pl,v 1.5 2017/07/10 17:37:57 karl Exp karl $ use strict; use warnings; use feature qw(say); $SIG{INT} = sub { die q(Nuff said!); }; say q(Did you post some valid code today?); my $answer; ANSWER: { chomp( $answer = <STDIN> ) } $answer = lc $answer; my %dispatch = ( 'yes' => sub { say q(Good!) }, 'no' => sub { say q(Bad!) }, 'nada' => sub { say q(Answer yes or no!); goto ANSWER; } ); ( $dispatch{$answer} || $dispatch{nada} )->(); __END__

    «The Crux of the Biscuit is the Apostrophe»

    perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help