Re: Template Toolkit on Windows 7

2012-07-11 Thread Dennis Daupert
Geez, ask for a little help, and you get an encyclopedia ;-) Lots to chew on. Thanks Mike, Howard, Leo, and Martin. for the lessons. I did open a cmd prompt as administrator, and invoked ttree. This time when I told him to create the .ttreerc file, he dutifully did so at c:\, so I can now contin

Re: Template Toolkit on Windows 7

2012-07-11 Thread Arms, Mike
Dennis Daupert [ddaup...@csc.com] wrote: > > Run the script or cmd as admin (right click on the command icon, > > select run as admin) would probably help > > This is a Perl script, configure.pl, no command icon to click on. > Is there another way I can run it as admin? > > best, > > /dennis M

RE: Template Toolkit on Windows 7

2012-07-11 Thread Howard Tanner
estate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Dennis Daupert Sent: Wednesday, July 11, 2012 1:48 PM To: leosusa...@gmail.com Cc: perl Win32-users Subject: Re: Template Toolkit on Windows 7 > Run the script or cmd as admin (right click on the command icon, > sele

Re: Template Toolkit on Windows 7

2012-07-11 Thread Dennis Daupert
> Run the script or cmd as admin (right click on the command icon, > select run as admin) would probably help This is a Perl script, configure.pl, no command icon to click on. Is there another way I can run it as admin? best, /dennis Upcoming time off: none planned ---

Re: Template Toolkit on Windows 7

2012-07-11 Thread leosusanto
:44 To: perl Win32-users Subject: Template Toolkit on Windows 7 ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs ___ Perl

Template Toolkit on Windows 7

2012-07-11 Thread Dennis Daupert
I've coded mostly on *nix machines, so hadn't run into this one before. On Windows 7, when invoking code that uses Template (for the first time), when ttree tries to create his .ttreerc file the OS will not let him do so. I tried creating an empty file of that name, thinking tha

RE: Template to remove local admin privileges on a windows NT comps.

2005-02-24 Thread Mulley, Nikhil
refer to Win32::NetAdmin Module..   -Nikhil -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Mungamuru, Sasi Kiran KumarSent: Thursday, February 24, 2005 4:32 PMTo: perl-win32-users@listserv.ActiveState.comSubject: Template to remove

Template to remove local admin privileges on a windows NT comps.

2005-02-24 Thread Mungamuru, Sasi Kiran Kumar
Good Evening all,         Could you please pass out a template in perl for to remove local admin privileges for existing users in windows NT environment.   Thanks, ~Sasi ___ Perl-Win32-Users mailing list Perl-Win32-Users

Re: Apache::Template requires libapreq

2004-04-12 Thread Randy Kobes
On Mon, 12 Apr 2004, Barry wrote: > Hi, > > I'm trying to install : Apache-Template-0.08 but cannot > get beyond the following message... > > Error: Package 'libapreq' not found on server. Please 'search' for it first. [ .. ] > Windows XP > Acti

Apache::Template requires libapreq

2004-04-12 Thread Barry
Hi, I'm trying to install : Apache-Template-0.08 but cannot get beyond the following message... Error: Package 'libapreq' not found on server. Please 'search' for it first. When I do so : === ppm> quer

RE: Adding keys and values to HTML::Template param

2002-10-18 Thread Gary Nielson
Yes, I have thought of that, too, but how do you do that? Say I have %hash. What is the syntax, the code, for passing that hash to $template->param? Could you type out an example? I know this sounds stupid, but I can pass new keys and values to a hash just by typing $hash{price'} = &

RE: Adding keys and values to HTML::Template param

2002-10-18 Thread Aaron Trevena
> OK, HTML::Template has you create a hash whose values are used by a > template. Construction is like this: > $template->param( > HOME => $ENV{HOME}, > PATH => $ENV{PATH}" > ); > Dumb question, but how to

Adding keys and values to HTML::Template param

2002-10-18 Thread Gary Nielson
Could someone help me understand how something can be done with hashes and HTML::Template. I am struggling to understand modules and object-oriented programming in perl. OK, HTML::Template has you create a hash whose values are used by a template. Construction is like this: $template->pa

Re: Mail::Sender and HTML::Template question

2002-05-03 Thread David Kaufman
"Kevin" <[EMAIL PROTECTED]> wrote: > I am trying to send mail using Mail::Sender and have been unsuccessful. I am > using HTML::Template object to hold the mail template . > > my $thtml = $self->load_tmpl($config->get_base_template_path . > $

Mail::Sender and HTML::Template question

2002-05-03 Thread Kevin
Hello, I am trying to send mail using Mail::Sender and have been unsuccessful. I am using HTML::Template object to hold the mail template . my $thtml = $self->load_tmpl($config->get_base_template_path . $config->get_MAIL_order_confirm_client, die_on_bad_params => 0); my $sende

Re: template problem

2001-04-03 Thread Philip Newton
Charles Pelkey wrote: > $_ =~ s/{(.*?)}/${$1}/g; # Find variables in the form of > {var_name} and replace with $var_name Eek -- symbolic references. > Does anyone have an idea of how to fix this??? Use a hash :) s/\{([^}]*)\}/$var{$1}/g; Should replace {Full_Name} with $var{'Full_Nam

Template

2001-03-23 Thread Nikola Knezevic
Hi, I'm doing some page generation. In that page would be some (HTML) SELECT fields, whose contents would be pulled from database. I've decided to use Template module and to make whole job as elegant as it can be. The table from which the data is pulled looks something like this TABLE

Re: template problem

2001-03-21 Thread $Bill Luebkert
Carl Jolley wrote: > > It's not entirely clear to me but do you mean that the braces > are included in the data that you are trying to match? If yes, > yoy will have to quote the braces in your regex since braces > are regex meta characters e.g. > > $contents =~ s/\{(\w+)\}/$1/g; I don't think

Re: template problem

2001-03-19 Thread Joe Schell
$Full_Name = param('Full_Name'); > $E_Mail = param('E_Mail'); > > open (TMPL, "/path/to/template.txt") || die "Could not open template > file: $!\n"; > while () { > chop; > $contents .= $_; > } >

Re: template problem

2001-03-19 Thread Charles Pelkey
7;); open (TMPL, "/path/to/template.txt") || die "Could not open template file: $!\n"; while () { chop; $contents .= $_; } close TMPL; $contents =~ s/{(\w+)}/$1/g; # replace {variable_name} with value of variable print "$contents"