CGI-Path

 view release on metacpan or  search on metacpan

Path.pm  view on Meta::CPAN

  allow_magic_fill      => 1,
  magic_fill_filename   => "/path/to/magic_fill_file",
});

You can use variable values using the magic_fill_interpolation_hash.  By default, you can use Template::Toolkit tags, like so

currenttime            [% localtime %]

Currently, the following are included by default in the magic_fill_interpolation_hash

  script    - a good guess at the name of your script
  _script   - the stuff after the last _ in the above script
  localtime - scalar (localtime),
  time      - time,

I also include %ENV

Two other keys are not available by default, based on micro seconds namely

  micro      - join(".", &Time::HiRes::gettimeofday()), which really tries to get you a unique value
  micro_part - (&Time::HiRes::gettimeofday())[1];, which is just the micro seconds

README  view on Meta::CPAN

    => "/path/to/magic_fill_file", });

    You can use variable values using the magic_fill_interpolation_hash. By
    default you can use Template::Toolkit tags, like so

    currenttime [% localtime %]

    Currently, the following are included by default in the
    magic_fill_interpolation_hash

      script    - a good guess at the name of your script
      _script   - the stuff after the last _ in the above script
      localtime - scalar (localtime),
      time      - time,

    I also include %ENV

    Two other keys are not available by default, based on micro seconds
    namely

      micro      - join(".", &Time::HiRes::gettimeofday()), which really tries to get you a unique value



( run in 0.984 second using v1.01-cache-2.11-cpan-748bfb374f4 )