Skip to content

Instantly share code, notes, and snippets.

@peczenyj
Last active December 13, 2015 19:58
Show Gist options
  • Select an option

  • Save peczenyj/4966481 to your computer and use it in GitHub Desktop.

Select an option

Save peczenyj/4966481 to your computer and use it in GitHub Desktop.
why my bb does no work?
1..3
ok 1 - should be 1
not ok 2 - should be 2
# Failed test 'should be 2'
# at untitled line 8.
# got: undef
# expected: '2'
# Looks like you failed 1 test of 3.
ok 3 - should be 3
use Test::More tests => 3;
$aa = 1;
my $bb = 2; # HERE!
local $cc = 3;
is(${*aa}, 1, "should be 1");
is(${*bb}, 2, "should be 2");
is(${*cc}, 3, "should be 3");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment