X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-good.t;h=e503cecde5ae03fd7bcefd8c186a3fd0ddc44585;hb=f09d654a5606b2176a224ea7f45cfdef3dc761e9;hp=0132f45ec4ac6ea96569815a5c843706ac071c22;hpb=f4e7787d7c015980abba9a8d76f0293f24e0ab94;p=perl%2Fmodules%2Findirect.git diff --git a/t/10-good.t b/t/10-good.t index 0132f45..e503cec 100644 --- a/t/10-good.t +++ b/t/10-good.t @@ -9,9 +9,9 @@ package main; use strict; use warnings; -use Test::More tests => 36 * 4; +use Test::More tests => 45 * 4; -my ($obj, $pkg, $cb, $x); +my ($obj, $pkg, $cb, $x, @a); sub meh; { @@ -129,9 +129,19 @@ $obj = new $x }(qw/bar baz/); #### +meh; +#### +meh $_; +#### meh $x; #### -meh $x, 1 , 2; +meh $x, 1, 2; +#### +print; +#### +print $_; +#### +print $x; #### print STDOUT "bananananananana\n"; #### @@ -144,3 +154,11 @@ $obj = "apple ${\(new Hlagh)} pear" $obj = "apple @{[new Hlagh]} pear" #### s/dongs/new Hlagh/e; +#### +exec $x $x, @a; +#### +exec { $a[0] } @a; +#### +system $x $x, @a; +#### +system { $a[0] } @a;