I've just received a perl application to look at, but I don't recognise the format of the code at all, and it quite obviously won't run on a normal system without some module or external parser.
As it's embedded into HTML files, I guessed it might be EmbPerl or Mason in some format, but a quick look on the net told me it wasn't either of these.
The name "tomahawk" was bounced around a bit previously, which I've heard of, I don't know if this means anything to anyone?
The more I look it looks like its embedded for a particular CMS or a specific parser, given that it doesnt use $ for varible names for the most part (but does on $dbh-> connection code for example). I've attached a couple of snippets below. Does anyone recognize what this might be?
Thanks,
Matt.
Example 1: (from a .html file)
<[banner->select_banner(location=>'login_script')
i=1
while banner.file {]>
<div class="ads">
<a href="<[=banner.link]>"><img src="/banner/<[=banner.file]>" /></a>
</div>
<[i+=1}]>
Exammple 2: (from a .lib file)
my $dbh = DBI->connect('dbi:Oracle:SITE.WEBSITE.NET',
'USER',
'PASS',
);
$tomahawk->globalvars->{'local'}->{'oreturn'} = -1 unless($dbh);
$tomahawk->globalvars->{'oracle'}->{'dbh'} = $dbh;
endinline
unless (oreturn == -1) {
oracle.connected = 1
return 1;
}..........................
As it's embedded into HTML files, I guessed it might be EmbPerl or Mason in some format, but a quick look on the net told me it wasn't either of these.
The name "tomahawk" was bounced around a bit previously, which I've heard of, I don't know if this means anything to anyone?
The more I look it looks like its embedded for a particular CMS or a specific parser, given that it doesnt use $ for varible names for the most part (but does on $dbh-> connection code for example). I've attached a couple of snippets below. Does anyone recognize what this might be?
Thanks,
Matt.
Example 1: (from a .html file)
<[banner->select_banner(location=>'login_script')
i=1
while banner.file {]>
<div class="ads">
<a href="<[=banner.link]>"><img src="/banner/<[=banner.file]>" /></a>
</div>
<[i+=1}]>
Exammple 2: (from a .lib file)
my $dbh = DBI->connect('dbi:Oracle:SITE.WEBSITE.NET',
'USER',
'PASS',
);
$tomahawk->globalvars->{'local'}->{'oreturn'} = -1 unless($dbh);
$tomahawk->globalvars->{'oracle'}->{'dbh'} = $dbh;
endinline
unless (oreturn == -1) {
oracle.connected = 1
return 1;
}..........................