Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: What's the best way to use Any YAML (not YAML::Any)

by djerius (Beadle)
on Mar 15, 2014 at 16:00 UTC ( #1078456=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    eval { $yaml_class->import( 'Dump'); 1; }
      or croak( "Can't find Dump in $yaml_class\n" );
    
  2. or download this
    Package::Stash->new( $yaml_class )->has_symbol( '&Dump' )
      or croak( "Can't find Dump in $yaml_class\n" );
    
  3. or download this
    my $Dump = $yaml_class . "::Dump";
    [... later in the code ...]
    my $var = eval { &$Dump(...) } or croak( "bad return or Dump not imple
    +mented\n" );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1078456]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2022-05-17 14:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (66 votes). Check out past polls.

    Notices?