Help for this page

Select Code to Download


  1. or download this
    use Modern::Perl;
    
    use YAML qw/DumpFile LoadFile/;
    ...
    
    my $snippets = LoadFile('./snippet.yml'); # <- Put this in the initial
    +ization part of your program
    &{ $snippets->{snippet1} }; # and run the snippet
    
  2. or download this
    ---
    snippet1: !!perl/code |
      {
    ...
          }
          say $counter;
      }