Re: displaying a message using perl code

2005-09-18 Thread Owen Cook
On Mon, 19 Sep 2005, David Swiderski wrote: > > I tried to view the perl demo at the link you provided in your email > http://www.pcug.org.au/~rcook/tute.cgi > and WAS unable to GET TO THE DEMO to view it. Fair enough, but you didn't say in what way you couldn't view that. Just a couple of text

Re: displaying a message using perl code

2005-09-18 Thread David Swiderski
I tried to view the perl demo at the link you provided in your email http://www.pcug.org.au/~rcook/tute.cgi and WAS unable to GET TO THE DEMO to view it. I'm not quite clear on exactly what the sample code does at this point being a newbie but what I'm understanding, I don't need to write a new c

Where is the data I just inserted?

2005-09-18 Thread Siegfried Heintze
I'm using the DBI with ODBC on MS Access. I perform a SELECT. If this fails to find anything, I perform an "INSERT" and "SELECT MAX(id)". Then I perform the exact same SELECT statement that I first performed and it does not find what I just inserted. Argghhh! I tried enclosing the "INSERT" and

Re: @ARGV

2005-09-18 Thread Binish A R
Hans Ginzel wrote: John W. Krahn napsal(a): arguments. Then how come I cannot access the first element with $ARGV[0]? Are tou not thinking on $0? HG I think @ARGV wont work in command line. Try to write the code in a script and check it out. #!/usr/bin/perl -w print $ARGV[0]; $ per

Re: Assistance needed with script.......

2005-09-18 Thread Bryan Jones
That worked well - Thanks. Could you assist me into understanding what exactly that has done. if ( /^\s+Device Capacity/ ) {<-- I understand this, this is a normal regex search. local $/ = '}'; <-- I understand this line, it makes the $INPUT_RECORD_SEPARATOR loc

Re: @ARGV

2005-09-18 Thread Hans Ginzel
John W. Krahn napsal(a): arguments. Then how come I cannot access the first element with $ARGV[0]? Are tou not thinking on $0? HG -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

ppm, download and install modul separately

2005-09-18 Thread Hans Ginzel
Hello, how can I download a module with ppm, copy downloaded file to another computer and install it there? Something like pc1$ ppm ppm> search DBD-ODBC ppm> download 1 ppm> quit pc1$ cp DBD-ODBC*.pm.tar.gz flash_disk/ pc2$ cp flash_disk/DBD*.gz . pc2$ ppm install DBD*.gz Best regards Hans Gi

Re: Can't figure out Error.pm

2005-09-18 Thread Matija Papec
Peter Rabbitson wrote: I then tried to change it in the following way, but I get an error: Can't locate object method "catch" via package "DBException" (perhaps you forgot to load "DBException"?) at ./testerror line 16. ^^^ It seems that you're missing "use DBExc

Re: Can't figure out Error.pm

2005-09-18 Thread John Doe
Peter Rabbitson am Sonntag, 18. September 2005 16.37: [...] Hi > This raises another question though - I thought in order to have a class > I *must* declare a package. However you get away by simply initiating a > variable. Does autovivification work for packages just like it does for > hash keys

Re: Can't figure out Error.pm

2005-09-18 Thread Peter Rabbitson
On Sun, Sep 18, 2005 at 07:14:16AM -0700, Peter Scott wrote: > On Sun, 18 Sep 2005 01:43:42 -0500, Peter Rabbitson wrote: > > > sub get_values { > > > > #fail right away > > throw DBException ("Sorry, bank is empty"); > > } > > > > Each exception needs to be a class that inherits from E

Re: Can't figure out Error.pm

2005-09-18 Thread Peter Scott
On Sun, 18 Sep 2005 01:43:42 -0500, Peter Rabbitson wrote: > I am trying to incorporate cleaner exception handling in my code. Here > is a small illustration (meaningless) of what most of my code looks > like: [...] > I then tried to change it in the following way, but I get an error: > Can't lo