perl template

2005-01-05 Thread Anish Kumar K.
I use a perl template and getting this error my $templateFile="\home\anish\temp\client.html"; $template->process($templateFile, \%inputVariables) || die "Template process failed: ", $template->error(), "\ n"; absolute paths are not allowed (set ABSOLUTE option) Please help me Thanks Anish

Re: perl template

2005-01-05 Thread Ricardo SIGNES
* "Anish Kumar K." <[EMAIL PROTECTED]> [2005-01-05T05:52:16] > I use a perl template and getting this error > > my $templateFile="\home\anish\temp\client.html"; > $template->process($templateFile, \%inputVariables) || die "Template process > failed: ", $template->error(), "\ > n"; > > absolute p

Re: perl template

2005-01-05 Thread Alfred Vahau
my $templateFile="\home\anish\temp\client.html"; Are you on a Win32 box? *unix uses forward slashes for path names, if that matters on your template. alfred, Anish Kumar K. wrote: I use a perl template and getting this error my $templateFile="\home\anish\temp\client.html"; $template->process($templ

How do I distinguish between no value and false? (was RE: How does defined work?)

2005-01-05 Thread Siegfried Heintze
How do I distinguish between no value and false? I thought defined was supposed to do that. So if I call $q->param("xyz"), how do I distinguish between &xyz=0&abc and &xyz=&abc and xyz being absent all together? -Original Message- From: Babale Fongo [mailto:[EMAIL PROTECTED] Sent: Tuesda

Re: How do I distinguish between no value and false? (was RE: How does defined work?)

2005-01-05 Thread JupiterHost.Net
Siegfried Heintze wrote: How do I distinguish between no value and false? I thought defined was supposed to do that. defined is true if its defined and false if it is not defined its defined if its been given a value that is defined as '' or 0.. Try this out, uncommenting the different my $foo's t

RE: How do I distinguish between no value and false? (was RE: Ho w does defined work?)

2005-01-05 Thread Bob Showalter
Siegfried Heintze wrote: > How do I distinguish between no value and false? I thought defined was > supposed to do that. > > So if I call $q->param("xyz"), how do I distinguish between > &xyz=0&abc and &xyz=&abc and xyz being absent all together? param() will return undef in scalar context, or an

RE: How do I distinguish between no value and false? (was RE: Ho w does defined work?)

2005-01-05 Thread Bob Showalter
Bob Showalter wrote: > Siegfried Heintze wrote: > > How do I distinguish between no value and false? I thought defined > > was supposed to do that. > > > > So if I call $q->param("xyz"), how do I distinguish between > > &xyz=0&abc and &xyz=&abc and xyz being absent all together? > > param() will

Is GOTO evil?

2005-01-05 Thread Christopher Spears
I heard a lot of people dislike goto. Why? When should I use this command? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Is GOTO evil?

2005-01-05 Thread Charles K. Clarkson
Christopher Spears <[EMAIL PROTECTED]> wrote: : I heard a lot of people dislike goto. Why? When : should I use this command? There are three forms of this statement. Each is discussed in the 'perlfunc' reference to 'goto'. Have you read that document? 'goto' is usually used as an advan

Re: A problem about warning information.

2005-01-05 Thread Perl Hacker
Thanks a lot. On Mon, 03 Jan 2005 03:21:24 -0500, Randy W. Sims <[EMAIL PROTECTED]> wrote: > Perl Hacker wrote: > > Below is my script, > > When I run the script, everything is ok. > > > > #! /usr/bin/perl âw > > > > print "111\n"; > > warn "222 \n"; > > > > > > Problem emerges when using the fol

Search a log file and restart an app

2005-01-05 Thread Larry Guest
I am not a big perl programmer. I wrote a script some time back and now I have to add more to it. What I have to do is this. 1) Stop 2 applications. 2) If they don't stop kill them. 3) Sync up all my web content (I have the script that does all this in place) 4) Clear out application #1 log

RE: Is GOTO evil?

2005-01-05 Thread Chris Devers
On Wed, 5 Jan 2005, Charles K. Clarkson wrote: > Christopher Spears <[EMAIL PROTECTED]> wrote: > > : I heard a lot of people dislike goto. Why? When > : should I use this command? > > There are three forms of this statement. Each is > discussed in the 'perlfunc' reference to 'goto'. Have >

Version of gdlib wih GD

2005-01-05 Thread JupiterHost.Net
Hello group, Anyone know of a way to get the version of gdlib that GD is using? Something like the fictional $GD::gdlib_version below would be awesome! I didn't see anything about it in http://search.cpan.org/~lds/GD-2.19/GD.pm or the source... use GD; print "You have gdlib version: $GD::gdlib_vers

Re: text parser

2005-01-05 Thread Chris Devers
On Tue, 4 Jan 2005, Patricio Bruna V wrote: > are any module that can parse text files with some definitions of > segment that i define? Depending on what the format is, yes, maybe. > i have a file where the blocks starts with [foo] and last to the next > block. The Windows .ini config file

RE: Is GOTO evil?

2005-01-05 Thread Charles K. Clarkson
Chris Devers <[EMAIL PROTECTED]> wrote: : In [brief] defense of GOTO, for some programming it is : essential. Assembly language programming, for example. Since this is a perl list, we can safely assume the OP was not asking about assembler's goto statement, but about perl's. 'perlfunc' m