Carrot::Productivity::Text::Placeholder::Miniplate::OS::Unix::File::Properties - access properties of a file
$class_names->provide( my $template_class = '::Productivity::Text::Placeholder::Template'); my $template = $template_class->constructor( my $os_unix_file = '::OS::Unix::File::Properties'); $template->compile( '[=file_timestamp_modification=] / [=file_owner_name=] / [=file_mode_rwx=]'); $os_unix_file->set_subject('/etc/hosts'); print ${$template->execute()}, "<-\n";
Provides the placeholders file_(owner_id|owner_name|group_id|group_name|size|timestamp_creation|timestamp_modification|timestamp_status). The file must exists. Can be used on the same name together with ::OS::Unix::File::Name via ::Aggregator.
Sets or gets the file name.
Adds the $code_ref under the name of $template. $code_ref is executed and returns the current value to be substituted for $template.
This is the first public release.
Winfried Trumper <pub+perl(a)wt.tuxomania.net>
Copyright (C) 2011 Winfried Trumper
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install main_, copy and paste the appropriate command in to your terminal.
cpanm
cpanm main_
CPAN shell
perl -MCPAN -e shell install main_
For more information on module installation, please visit the detailed CPAN module installation guide.