Config-ApacheExtended
view release on metacpan or search on metacpan
lib/Config/ApacheExtended.pm view on Meta::CPAN
package Config::ApacheExtended;
use Parse::RecDescent;
use Config::ApacheExtended::Grammar;
use IO::File;
use Scalar::Util qw(weaken);
use Text::Balanced qw(extract_variable);
use File::Spec::Functions qw(splitpath catpath abs2rel rel2abs file_name_is_absolute);
use Carp qw(croak cluck);
use strict;
BEGIN {
use vars qw ($VERSION $DEBUG);
$VERSION = sprintf("%d.%02d", q$Revision: 1.15 $ =~ /(\d+)/g);
$DEBUG = 0;
}
lib/Config/ApacheExtended.pm view on Meta::CPAN
sub _createBlock
{
my $self = shift;
my $data = shift;
my $block = bless { %{$self} }, ref($self);
$block->{_data} = {%$data};
if ( $self->{_inherit_vals} )
{
my $parent = $self;
weaken($parent);
$block->{_parent} = $parent;
}
$block->_substituteValues() if $self->{_expand_vars};
return $block;
}
1;
=head1 VARIABLE SUBSTITUTION
( run in 0.630 second using v1.01-cache-2.11-cpan-65fba6d93b7 )