You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Pete Moran <pe...@forloop.co.uk> on 2005/10/12 11:08:50 UTC
Offline $epreq->conf->path
Hi
I have a problem using the pathref in offline mode – works perfectly online,
however seems its not valid – any ideas ?
Am using Embperl 2.0.rc3 (Installed using Debian Apt-get)
Example Input File
[-
$doc_root = "/var/";
use Data::Dumper;
$pathref = $epreq -> config -> path;
print STDERR "PATHREF ".Dumper($pathref);
-]
Executing Script
#!/usr/bin/perl -w
use strict;
use Embperl;
my @data;
my @errors;
$/ = undef;
open(F, '< /var/website/data/email.epl');
my $ip = <F>;
close F;
my $msg = '1';
my $output;
Embperl::Execute({
inputfile => "/tmp/$msg".$$,
path => '/var/website/',
mtime => 100,
input => \$ip,
param => \@data,
errors => \@errors,
output => \$output,
});
Output
[4350]ERR: 32: Warning in Perl code: cannot handle ref type 115 at
/usr/lib/perl/5.8/Data/Dumper.pm line 167.
PATHREF $VAR1 = ;
T : 020 7617 7773
M : 07985969732
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 11/10/2005
RE: Offline $epreq->conf->path
Posted by Pete Moran <pe...@forloop.co.uk>.
Thanks Gerald
That’s solved it.
Regards
-----Original Message-----
From: Gerald Richter [mailto:richter@ecos.de]
Sent: Wednesday, 12 October 2005 11:30 AM
To: 'Pete Moran'; embperl@perl.apache.org
Subject: RE: Offline $epreq->conf->path
>
> path => '/var/website/',
>
Please try
path => ['/var/website/'],
Gerald
** Virus checked by BB-5000 Mailfilter **
--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 11/10/2005
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.14/129 - Release Date: 11/10/2005
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Offline $epreq->conf->path
Posted by Gerald Richter <ri...@ecos.de>.
>
> path => '/var/website/',
>
Please try
path => ['/var/website/'],
Gerald
** Virus checked by BB-5000 Mailfilter **
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org