Re: Serving up a pdf file

2004-07-21 Thread David Arnold
PM 7/21/04 +, Philipp Traeder wrote: >On Wednesday 21 July 2004 HH:53:19, David Arnold wrote: >> All, > >Hi David, >> >> I have a page with a link "Quiz1". >> >> When the user clicks on the the link, a perl script will be summoned that >> w

Serving up a pdf file

2004-07-21 Thread David Arnold
All, I have a page with a link "Quiz1". When the user clicks on the the link, a perl script will be summoned that will populate forms of a pdf document. Now, I could create a new page at this point with a link to the newly created pdf, but could someone suggest a technique where I simply send th

Perl and XML::Simple

2004-07-18 Thread David Arnold
All I tried to run this: #! /usr/local/bin/perl -w # File: Responses.pl use strict; use warnings; # Import the SML::Simple module use XML::Simple; use Data::Dumper; # Turn the file into a has reference, using XML::Simples' "XMLin" # subroutine. We'll also turn on the 'forcearray' option, so th

RE: Order of evaluation

2004-07-16 Thread David Arnold
Charles et al, Certainly good advice, and I did print it out, so I do know what happens. %perl junk.pl affection3 Compilation finished at Fri Jul 16 20:02:43 It's just that I don't know why this happens. At 09:52 PM 7/16/04 -0500, Charles K. Clarkson wrote: >David Arnold <

Order of evaluation

2004-07-16 Thread David Arnold
All, If I have: my $state={}; $state->{WORD}='affection'; $state->{GAMENO}=3; $state->{GUESSES}=3; Then, the following line puzzles me: my @[EMAIL PROTECTED](WORD GAMENO)}; How does the order of evaluation go here in order to populate @ary? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

!$state

2004-07-15 Thread David Arnold
All, If: $state={}; Then, what is: !$state -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tie::DBI

2004-07-02 Thread David Arnold
Bob, A good tip. Thanks. :-) At 08:31 AM 7/2/04 -0400, Bob Showalter wrote: >David Arnold wrote: >> All, >> >> Never mind. It was a permissions problem. I downloaded the gz file, >> unzipped and untarred and read the installation directions and found >> the prob

Re: Here construct not working

2004-07-01 Thread David Arnold
John, Thanks. That's it. At 07:27 PM 7/1/04 -0700, John W. Krahn wrote: >On Thursday 01 July 2004 18:59, David Arnold wrote: >> >> All, > >Hello, > >> For this: >> >> #! /usr/bin/perl -w >> # file: stein_test_DBI_table.pl >> >&

Here construct not working

2004-07-01 Thread David Arnold
All, For this: #! /usr/bin/perl -w # file: stein_test_DBI_table.pl use strict; use Tie::DBI (); my $DB_NAME = 'test_www'; my $DB_HOST = 'localhost'; my %test_users = ( 'root'=> [qw(user,authors,admin 5 superman)], 'george' => [qw(users 3 jetson)], 'winnie' => [qw(user,authors

Re: Tie::DBI

2004-07-01 Thread David Arnold
All, Never mind. It was a permissions problem. I downloaded the gz file, unzipped and untarred and read the installation directions and found the problem. Thanks, anyway. At 04:10 PM 7/1/04 -0700, David Arnold wrote: >All, > >Tried to install Tie::DBI from CPAN but it failed to insta

Tie::DBI

2004-07-01 Thread David Arnold
All, Tried to install Tie::DBI from CPAN but it failed to install. I got: cpan> install Tie::DBI ... ... ... ... t/DBI.t 32 15 46.88% 9-11 13 15 17 21 23-27 30-32 t/RDBM.t 255 6528020 36 180.00% 3-20 Failed 2/2 test scripts, 0.00% okay. 33/52 subtests failed, 36.5

Re: Searching ahead in a file

2004-06-30 Thread David Arnold
Japhy et al, This worked perfectly for what I want to do. Thanks to all of you, I am learning at a greater rate than by working alone. Many thanks. At 04:32 PM 6/30/04 -0400, Jeff 'japhy' Pinyan wrote: >On Jun 30, David Arnold said: > >>As I begin reading in lines from

Searching ahead in a file

2004-06-30 Thread David Arnold
All, I have a file that is filled with exercises that was written in a brand of lamstex that I need to convert to latex. Exercises begin like this: \ex If $f(x)=x^2$, blah ... That is, I can count on each exercise beginning with the \ex macro. Now there are at times instructions for groups of e

Re: Nested {}

2004-06-30 Thread David Arnold
Japhy, Thanks. These suggestions worked great! At 01:18 AM 6/30/04 -0400, you wrote: >On Jun 29, David Arnold said: > >>\backans{If $x=y^{2n}$ and $z=y^{3n}_{11}$, then we can substitute >> to find a solution.} >> >>I'd like to scan the file and re

RE: Nested {}

2004-06-29 Thread David Arnold
similar good advice for the wrapping situation? At 09:18 PM 6/29/04 -0500, Charles K. Clarkson wrote: >David Arnold <[EMAIL PROTECTED]> wrote: > >: Suppose I have a number of lines in a latex file like this: >: >: \backans{If $x=y^{2n}$ and $z=y^{3n}_{11}$, then we can &g

Nested {}

2004-06-29 Thread David Arnold
All, Suppose I have a number of lines in a latex file like this: \backans{If $x=y^{2n}$ and $z=y^{3n}_{11}$, then we can substitute to find a solution.} I'd like to scan the file and replace all of these with this format: \begin{answer} If $x=y^{2n}$ and $z=y^{3n}_{11}$, then we can sub

Need suggestions

2004-06-29 Thread David Arnold
All, Being only moderately comfortable with Perl, I find myself in need of some direction on a more complex task. I have a tex file containing a large number of exercises shaped as follows: \ex This is the text of the exercise as it appears in the book. The exercise may have several parts. \pt T