Changeset 17179

Show
Ignore:
Timestamp:
07/30/07 20:44:29 (16 months ago)
Author:
bcmb
Message:

Update smart links and correct 1 test script.

Location:
t
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • t/operators/quoting.t

    r15822 r17179  
    8181}; 
    8282 
    83 { # non interpolating single quotes with nested parens L<S02/Literals/That is () have no special significance> 
     83# L<S02/Literals/That is () have no special significance> 
     84{ # non interpolating single quotes with nested parens 
    8485    my @q = (); 
    8586    @q = (q ( ($foo $bar))); 
     
    8889}; 
    8990 
    90 { # q() is bad L<S02/Literals/Which is mandatory for parens> 
     91# L<S02/Literals/Which is mandatory for parens> 
     92{ # q() is bad 
    9193    my @q; 
    9294    sub q { @_ } 
     
    9597}; 
    9698 
    97 { # adverb variation L<S02/Literals/:q> 
     99# L<S02/Literals/:q> 
     100{ # adverb variation 
    98101    my @q = (); 
    99102    @q = (q:q/$foo $bar/); 
     
    116119}; 
    117120 
    118 { # interpolating quotes L<S02/Literals/same as qq> 
     121# L<S02/Literals/qq:> 
     122{ # interpolating quotes 
    119123    my @q = (); 
    120124        @q = qq/$foo $bar/; 
     
    130134}; 
    131135 
    132 { # adverb variation L<S02/Literals/:qq> 
     136# L<S02/Literals/:qq> 
     137{ # adverb variation 
    133138    my @q = (); 
    134139    @q = q:qq/$foo $bar/; 
     
    137142}; 
    138143 
    139 { # \qq[] constructs interpolate in q[] L<S02/Literals/using the \\qq> 
     144# L<S02/Literals/using the \qq> 
     145{ # \qq[] constructs interpolate in q[] 
    140146    my( @q1, @q2, @q3, @q4 ) = (); 
    141147    @q1 = q[$foo \qq[$bar]]; 
     
    172178}; 
    173179 
    174 { # angle brackets L<S02/Literals/the qw quote operator bracketed form> 
     180# L<S02/Literals/quote operator now has a bracketed form> 
     181{ # angle brackets 
    175182    my @q = (); 
    176183    @q = <$foo $bar>; 
     
    180187}; 
    181188 
    182 { # angle brackets L<S02/Literals/the qw quote operator bracketed form> 
     189{ # angle brackets 
    183190    my @q = (); 
    184191    @q = < $foo $bar >; 
     
    247254}; 
    248255 
    249 { # qw, interpolating, shell quoting L<S02/Literals/respects quotes in a shell-like fashion> 
     256# L<S02/Literals/respects quotes in a shell-like fashion> 
     257{ # qw, interpolating, shell quoting 
    250258    my (@q1, @q2) = (); 
    251259    my $gorch = "foo bar"; 
     
    262270}; 
    263271 
    264 { # qq:to L<S02/Literals/Heredocs are no longer written> 
     272# L<S02/Literals/Heredocs are no longer written> 
     273{ # qq:to 
    265274    my @q = (); 
    266275 
     
    276285}; 
    277286 
    278 { # q:to indented L<S02/Literals/Here docs allow optional whitespace> 
     287# L<S02/Literals/Heredocs allow optional whitespace> 
     288{ # q:to indented 
    279289    my @q = (); 
    280290 
     
    320330}; 
    321331 
    322 { # L<S02/Literals/"Pair" notation is also recognized inside> 
     332# L<S02/Literals/"Pair" notation is also recognized inside> 
     333{ 
    323334  # <<:Pair>> 
    324335    diag "XXX: pair.perl is broken atm so these tests may be unreliable"; 
  • t/syntax/interpolation/strings.t

    r16856 r17179  
    3434eval( q[is("$number {my $number=2} {$number}", '1 2 1', 'original number 
    3535still available in closure after local version in closure: works' );] ); 
    36 is("$(my $x = 2) $x", '2 2', 'Variable should interpolate and still be available in the outer scope.'); 
    37 is("$(my $x = 2)" ~ $x, '22', 'Variable should interpolate and still be available in the outer scope.') 
     36eval( q[is("$(my $x = 2) $x", '2 2', 'Variable should interpolate and still be available in the outer scope.');] ); 
     37eval( q[is("$(my $x = 2)" ~ $x, '22', 'Variable should interpolate and still be available in the outer scope.');] ); 
    3838 
    3939# L<S02/Names and Variables/form of each subscript>