Questions tagged [embperl]

Embperl is a framework for building websites with Perl.

15 questions
14
votes
4 answers

Is there any performance comparison between Perl web frameworks?

I have seen mentions (which sounded like unsubstantiated opinions, and dated ones at that) that Embperl is the fastest Perl web framework. I was wondering if there's a consensus on the relative speed of the major stable Perl web frameworks, or…
DVK
  • 126,886
  • 32
  • 213
  • 327
5
votes
1 answer

How can one manually create an Apache request object?

Is there a good API that would allow someone to create an object of Apache class? The class itself seems to lack a constructor; and synopsis wasn't very helpful. My suspicion is that it's somehow done via sublcass, e.g. Apache::Request? The context…
DVK
  • 126,886
  • 32
  • 213
  • 327
5
votes
1 answer

Is there an automated way to discover Embperl 1.x syntax not compatible with Embperl 2.x?

There seem to be several things that were valid in Embperl 1.x that are no longer supported in Embperl 2.x. As an example: [+ +] blocks must now contain a valid Perl expression. Embperl 1.x allows you to put multiple statements into such a…
DVK
  • 126,886
  • 32
  • 213
  • 327
3
votes
1 answer

What is the purpose of %mdat (as compared to %udat) in Embperl?

I saw that session handling mentioned an %mdat as well as %udat hash. What is the difference and when and why would I use the %mdat hash?
Alice
  • 2,291
  • 2
  • 15
  • 11
3
votes
1 answer

can't add a base64-encoded image to vCard

I've successfully used Perl (via Embperl) to create a dynamically-generated vCard for employees, populating all the fields except for the photo. I can't get that working no matter what. (The code to generate a photo-less vCard works fine.)…
Blazemonger
  • 90,923
  • 26
  • 142
  • 180
2
votes
1 answer

User-independent session data: is it implemented anywhere outside of Embperl?

Preface Normally, a session in a web application stores data for a specific user (and its data is available across any visit of the user to the same web server/site). Embperl (a templated web development framework in Perl) has a very interesting…
DVK
  • 126,886
  • 32
  • 213
  • 327
2
votes
1 answer

Should I consider using Embperl as Perl templating solution?

I am looking at trying to learn templated web development in Perl. This is both for personal use, as well as hopefully to gain another marketable skill. I have some idea of what possible Perl templated development frameworks are there (on the level…
Aye
  • 393
  • 2
  • 13
2
votes
1 answer

Img source is a variable, the URL gets encoded

I have a multi-level hash in which I have a user's avatar's URL. I am trying to make a cell with "Jane Doe image" but when the code runs the URL is getting changed. When I interpolate it into an Embperl…
Iluvatar14
  • 699
  • 1
  • 5
  • 18
2
votes
2 answers

perl / embperl -- IPC::Open3

I have a sample program in 2 formats perl & embperl The perl version works as a CGI but the embperl version does not work. Any suggestions or pointers to solutions would be appreciated OS: Linux version 2.6.35.6-48.fc14.i686.PAE (...) (gcc version…
Donavon Lerman
  • 343
  • 1
  • 6
  • 19
1
vote
1 answer

getting form data values as null in %fdat variable in EmbPerl

I am getting NULL form data values in %fdat variable in EmbPerl for file uploads with form property enctype="multipart/form-data". Here is the EmbPerl code : if(( defined $fdat{file} && $fdat{file} ) && $fdat{upload} ) { $filename =…
Futuregeek
  • 1,900
  • 3
  • 26
  • 51
0
votes
1 answer

Foreach Loop in EmbPerl

Seems like variables declared outside foreach, initialized inside foreach will not persist its data. Consider this example : [- $myVar; foreach my $item (qw/item1 item2 item3/) { $myVar = $item; } print $myVar # This will print undef, I…
Cadz
  • 139
  • 3
  • 21
0
votes
2 answers

How do I do something like 'print Dumper $var' in Embperl

How do I do something like 'print Dumper $var' in Embperl - I did this: [- $var = (some hash) ; use Data::Dumper print Dumper $var -] and this [+ Dumper $var +] ...but couldn't get any output.
Hogsmill
  • 1,574
  • 13
  • 21
0
votes
1 answer

embperl - Using IPC::Open3 to call wkhtmltopdf. STDIN Not working

From within embperl, I am trying to call wkhtmltopdf with the IPC::Open3 module. I get output (thanks to ikegami ) from wkhtmltopdf but no input is going to wkhtmltopdf. This is related to this question: perl / embperl — IPC::Open3 Here is the…
Donavon Lerman
  • 343
  • 1
  • 6
  • 19
0
votes
1 answer

perl5 Number Sign # not working for comments

I have a very strange problem.. perl5 Number Sign # not working correctly for comments.. We use emperl, mod_perl, apache, linux.. In some programs if I have a line commented out with a number sign # or just a number sign # by itself on a line, all…
Donavon Lerman
  • 343
  • 1
  • 6
  • 19
0
votes
1 answer

getting form data values as null in %fdat varible in EmbPerl

I am getting form data values as NULL in %fdat varible in EmbPerl, if we go for file upload and form property enctype="multipart/form-data". Here is the EmbPerl code : if(( defined $fdat{file} && $fdat{file} ) && $fdat{upload} ) { …
Futuregeek
  • 1,900
  • 3
  • 26
  • 51