Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

RE: [mv] Safe.pm problems in report file



******    message to minivend-users from "Jeffrey D. Carnahan" <jcarnahan@networq.com>     ******

You need to use the my qualifier:

[perl]
  my $test = 'testing 1..2..3..';
  return $test;
[/perl]

--
Warmest Regards...
__________________________________________________________________
Jeff Carnahan                                        Networq, Inc.
http://www.networq.com/                      jcarnahan@networq.com
__________________________________________________________________


-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Marcus Weseloh
Sent: Friday, February 04, 2000 12:51 PM
To: minivend-users
Subject: [mv] Safe.pm problems in report file


******    message to minivend-users from "Marcus Weseloh"
<marcus@connexions.co.uk>     ******

Hi,

I am trying to use embedded perl in the report file. Just for testing
purposes I do this:

[perl]
$test = 'testing 1..2..3..';
return $test;
[/perl]

This code resulted in following error message:
---
/cgi-bin-local/dl/process Safe: glob trapped by operation mask at
(eval 47) line 3.
> <no input box> = 'testing 1..2..3..';
> return <no input box>;
---

So I untrapped 'glob' and got this message:
---
/cgi-bin-local/dl/process Safe: Can't modify glob in scalar
assignment at (eval 47) line 3, at EOF
> <no input box> = 'testing 1..2..3..';
> return <no input box>;
---

Using @test[0] instead of $test worked, but why doesn't $test
work?

The same code works find in a "normal" minivend page. Can
someone help me? How do prevent this from happening? Or can't I
use perl variables in the report file ? NewReport is set to yes, I'm
running MiniVend V3.14-4 with
Perl  5.005_03 on FreeBSD.

Cheers,

	Marcus


---
Marcus Weseloh
Webmaster & Developer
Connexions http://design.connexions.co.uk
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to
Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: