Help for this page

Select Code to Download


  1. or download this
        use Tie::DATA;
    
    ...
        __baz__
        
        woof woof
    
  2. or download this
        use Tie::DATA(':xml'); # predefined format
    
    ...
        <baz>
            woof woof
        </baz>
    
  3. or download this
        use Tie::DATA ( 
            sub{ ... },  # parse key/values from DATA 
    ...
        __DATA__
    
        ...
    
  4. or download this
        [foo]
        baz bar etc
    
  5. or download this
        <foo>baz bar etc</foo>
    
  6. or download this
        #define foo
        baz bar etc
    
  7. or download this
        <![foo[
            baz bar etc
        ]]>
    
  8. or download this
        use Tie::DATA qr(<<<<<<<<(\w*?)>>>>>>>>);
    
    ...
        use Tie::DATA \&Some::Mad::Parser::parse;
    
  9. or download this
        use Tie::DATA(':ini', 'proc_kv');
    
    ...
    
        [baz]
        woof woof
    
  10. or download this
        use My::Big::Routine;
        use Tie::DATA(':ini', 'My::Big::Routine::go');
    ...
        {
            print "$_ = $DATA{$_}\n";
        }