Help for this page

Select Code to Download


  1. or download this
    # By default
    $ cat > TabNL
    ...
    Tab^INL$
    
    # By others I didn't immediately think of
    
  2. or download this
    $ perl -E '
    use strict;
    ...
    Real \*STDIN fileno: 0
    Real \*DATA  fileno: 3
    Fake \*STDIN fileno: 3
    
  3. or download this
    ken@titan ~/tmp/pm_11152777_test_stdin/t
    $ cat test_json.t
    ...
        my $reference_data = do "$THISDIR/../data/$file_base.perl";
        is_deeply $perl_data, $reference_data, "Testing '$file_base'";
    }
    
  4. or download this
    ken@titan ~/tmp/pm_11152777_test_stdin/data
    $ cat test1.json
    ...
        keyB => [qw{elemA elemB elemC}],
        keyC => {nameA => 'valueA', nameB => 'valueB'},
    };
    
  5. or download this
    ken@titan ~/tmp/pm_11152777_test_stdin
    $ prove -v t/test_json.t
    ...
    All tests successful.
    Files=1, Tests=2,  1 wallclock secs ( 0.01 usr  0.03 sys +  0.12 cusr 
    + 0.08 csys =  0.25 CPU)
    Result: PASS