Help for this page

Select Code to Download


  1. or download this
    $r = 'a'..'z' ;            # Case 4 -- error
    
  2. or download this
    $r = (@r, @r) ;
    $v = (%r, %r) ;
    
  3. or download this
    use strict;
    use warnings;
    ...
    my $r1 = ( print_context(), print_context() );
    # Void
    # Scalar
    
  4. or download this
    my $r2 = sub { ( print_context(), print_context() ) }->();
    # Scalar
    # Scalar
    
  5. or download this
    $r = () = 1..27 ;