Fayland 林 > YAML-LoadURI-0.01 > YAML::LoadURI

Download:
YAML-LoadURI-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

YAML::LoadURI - Load YAML from URI file

SYNOPSIS ^

    use YAML::LoadURI;
    my $hashref = LoadURI( $uri );

EXPORT ^

FUNCTIONS ^

LoadURI( $uri, $opts )

    my $h  = LoadURI( 'http://search.cpan.org/dist/WWW-Contact/META.yml' );
    my $h2 = LoadURI( $uri, { raise_error => 0 } );

by default, it would croak when we can't get the file from remote. you can use { raise_error => 0 } to make it silence.

SEE ALSO ^

YAML::Any, LWP::Simple

AUTHOR ^

Fayland Lam, <fayland at gmail.com>

COPYRIGHT & LICENSE ^

Copyright 2009 Fayland Lam, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: