Greetings fellow Monks,

I've taken this to a couple of forums already, but with no ideas, I've come to seek the wisdom of the Perl Monks - probably the only people in the world who can shed any light on this!

I've been given an application - essentially a web site - to look over that's written in Perl. Or so they told me. On closer inspection, whilst it is pretty obviously Perl related, it's not pure Perl, and nothing like the Perl I've seen before. I'm just wondering if anyone can recognise this or tell me anything more about it, as Im guessing its related to a Perl module of some sort.

Essentially, its partly embedded into HTML files, and partly in libraries, so my first port of call was to look at syntax for embPerl and Mason - two ideas I've heard about but never seen or used, and its certainly neither of these. Its possibly some custom Perl-based script that runs through somebodys personal CMS. Im hoping however that somebody recognises this and can tell me what I need to run it.

Ive included a couple of examples from the code below. Any ideas anyone?

Thanks!
Matt

Example Code:

Lines of code that give it away as Perl: (this was found in a file of pure code (no HTML) with a .lib extension)

#--------------------------------------------------

function nextrow:method oracle { if (ServerOption('NoOracle') == 1) { return 0; } inline my $sth = $tomahawk->globalvars->{'oracle'}->{'sth'}; my $hashref = $sth->fetchrow_hashref(); if (defined $hashref) { while( my ($key, $value) = each %{$hashref}) { $tomahawk->globalvars->{'oracle'}->{'rowval['.lc($key).']' +} = $value; } $return = 1; } else { $return = 0; } endinline }
So far, yes looking closely like Perl. However in a page with a .html extension, I find "<[" tags and variables without the $ prefix as follows. I am told this is also Perl - it obviously isn't but is certainly related somehow (??!)
<[ if page.args.submitted { assert(page.post.un ne "", "<span><b>username is blank</b></span>< +br />"); assert(page.post.pw ne "", "<span><b>password is blank</b></span>< +br />"); unless (assert_error()) { login(page.args.un, page.args.pw, check_active => "yes", redir +ect => "/index.html", history => 1) loginfailed = 1 } } buffer "bodytagopen" { clearbuffer]> <body onLoad="document.getElementById('un').focus()"> <[}]>

Any ideas appreciated, thanks again!
Matt


In reply to Strange Format Perl - anyone recoginse this? by matt_platts

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.