Skip to content

Instantly share code, notes, and snippets.

@cfedde
Created March 23, 2015 16:23
Show Gist options
  • Save cfedde/2846532d6ad5249dc51c to your computer and use it in GitHub Desktop.
Save cfedde/2846532d6ad5249dc51c to your computer and use it in GitHub Desktop.
cfedde fails at basic logic.
use Modern::Perl;
my $Skip_re = undef;
for my $tn (1234567890, 2223334444, 3838383838 ) {
say +(defined $Skip_re && $tn =~ /$Skip_re/ .. $tn =~ /not a tn/)?"yes":"no";
next unless ((defined $Skip_re && $tn =~ /$Skip_re/) .. $tn =~ /not a tn/);
say "after next $tn";
}
say "after loop";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment