Help for this page

Select Code to Download


  1. or download this
    # JSON POST (application/json) with TLS certificate authentication
    my $tx = $ua->cert('tls.crt')->key('tls.key')->post('https://example.c
    +om' => json => {top => 'secret'});
    [download]
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    
    my $bytes = encode_json{ top => 'secret' };
    say $bytes;
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    foreach my $cast ( $dom->find('table.cast_list > tr:not(:first-child)'
    +)->each ){
      say trim ($cast->at('td:nth-of-type(2) > a')->text ) . ' as ' . trim
    + ( $cast->at('td.character')->all_text );
    }
    
  4. or download this
    Enter name of film to search for: 
    Batman Begins
    ...
    Larry Holden as Finch
    Gerard Murphy as Judge Faden
    Colin McFarlane as Loeb