Help for this page

Select Code to Download


  1. or download this
    my $section = [ 
        [ "image1.gif" , "mark('a' ,1)" ],
    ...
    my $parsed = '[ ' . 
                 join( ' , ', map { '[ "' . join('" , "', @$_) . '" ]' } @
    +$section ) .
                 ' ]';
    
  2. or download this
    [ [ "image1.gif" , "mark('a' ,1)" ] , [ "image2.gif" , "mark('a' ,2)" 
    +] ]
    
  3. or download this
    use JSON;
    
    ...
    ];
    
    my $parsed = $json->objToJson( $section );