Skip to content

Instantly share code, notes, and snippets.

@sekimura
Created April 8, 2009 18:10
Show Gist options
  • Save sekimura/91898 to your computer and use it in GitHub Desktop.
Save sekimura/91898 to your computer and use it in GitHub Desktop.
use Test::More qw(no_plan);
## sub foo {
## my @results;
## #...snip...
## return \@results || [] ;
## }
my @array;
ok !@array;
ok ref \@array eq 'ARRAY';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment