Changeset 23054

Show
Ignore:
Timestamp:
11/22/08 00:24:02 (7 weeks ago)
Author:
masak
Message:

[spec/S06-signature/positional-placeholders.t] added test that $foo
automatically creates $foo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S06-signature/positional-placeholders.t

    r20380 r23054  
    22use Test; 
    33 
    4 plan 3; 
     4plan 5; 
    55 
    66#L<S06/Placeholder variables/> 
     
    1919two_placeholders(1, 2); 
    2020 
     21sub non_twigil { 
     22    is $^foo, 5, "A single placeholder (still) works"; 
     23    is $foo, 5, "It also has a corresponding non-twigil variable"; 
     24} 
     25 
     26non_twigil(5); 
    2127 
    2228# vim: syn=perl6