- or download this
local $ARGV = ($templfile);
my $i = '';
...
# cleanup:
delete $hashref->{''};
- or download this
while (<>)
{
...
s/^\s*<\s*TEMPLATE\s+NAME="(.*?)"\s*>\s*//i
for values %$hashref;
- or download this
local $/;
local $_ = <>;
%$hashref = /\s*<\s*TEMPLATE\s+NAME="(.*?)"\s*>(.*?)\s*<\s*\/\s*TEMPLA
+TE\s*>/sig;