Share

QuikWiki

Tracker: Bugs

5 New w_eval() - ID: 958288
Last Update: Comment added ( sf-robot )

This w_eval() will parse the <% %> and only pass the
code to eval. the rest will go to lines().


sub w_eval {
my $file = $_[0];
my $script = w_read ($file);
while( $script =~ /\<\%.*\%\>/sx )
{
my ($head, $body, $tail) = $script =~ /^
(.*?)\<\%
(.*?)\%\>
(.*)$/xs;
print lines( $head );
eval $body;
print ('<br>'. $@.'<br>') if $@;
$script = $tail;
}
print lines( $script);
}



Nobody/Anonymous ( nobody ) - 2004-05-21 21:57

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 3 )




Date: 2007-07-10 02:20
Sender: sf-robotSourceForge.net Site Admin


This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2007-06-26 00:30
Sender: rkieslingSourceForge.net DonorProject Admin


This is essentially the same as w_eval () now. I might abbreviate it a
little more,
but the chore of handling mixed text and Perl content is now handled much
better
when w_eval () is called. See version 1.6, to be released any moment.

Serious apologies for the delay in fixing these bugs, however. I was off
doing
something else completely, and wasn't able to view sourceforge.net very
often.


Date: 2004-06-02 15:16
Sender: nobody

Logged In: NO

w_eval is much better, Thanks


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Pending 2007-07-10 02:20 sf-robot
close_date 2007-06-26 00:30 2007-07-10 02:20 sf-robot
status_id Open 2007-06-26 00:30 rkiesling
close_date - 2007-06-26 00:30 rkiesling