Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - tests - vstring
  • Loading branch information
fglock committed Sep 24, 2013
1 parent c55f350 commit f624047
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions t5/01-perlito/420-vstring.t
@@ -0,0 +1,23 @@
use v5;
use strict;
use feature 'say';

say "1..3";
my $v;

eval ' $a = v100; ';
$v = ref(\$a);
print "not " if $v ne 'VSTRING';
say "ok 1 - $v # TODO";

sub v200 { 123 }
$a = v200;
$v = ref(\$a);
print "not " if $v ne 'SCALAR';
say "ok 2 - $v";

$a = v200.200;
$v = ref(\$a);
print "not " if $v ne 'VSTRING';
say "ok 3 - $v # TODO";

0 comments on commit f624047

Please sign in to comment.