RE: pointers to subs?

2001-07-03 Thread Tony Cook
On Tue, 3 Jul 2001, Jeff 'japhy' Pinyan wrote: > None, unless 'login' or 'authent' were one of: > > q qq qr qw qx s m y tr > > Those can't be auto-quoted with => (unless 5.6.1 has changed that). bash$ perl -v | grep version This is perl, version 5.004_04 built for i686-linux bash$ perl -le '

Re: To replace a string with another

2001-06-27 Thread Tony Cook
On Wed, 27 Jun 2001, [iso-8859-1] Stéphane JEAN BAPTISTE wrote: > > Hi. > I want to replace the String %0A by nothing. I'm using this line: >$description=~tr/%0A//; > > But nothing change. > > What is my problem ? There's a few things wrong with this, first, you're trying to replace a st

RE: Komodo

2001-06-22 Thread Tony Cook
On Fri, 22 Jun 2001, Aaron Craig wrote: > Has anyone come out with a working environment for perl. print "my error > message" and print "my variable value" is great, but I'd love to be able to > step through a perl script and watch my variables as I go. If you're looking for a GUI debugger, p

Re: Use of File::Copy

2001-06-19 Thread Tony Cook
On Tue, 19 Jun 2001, Fabien JACQUET wrote: > Hi all, > > I'm trying to use copy($name,$folder.$name), but it doesn't work! > Yet, I've put "use File::copy" in my program. Perl is case-sensitive. You want: use File::Copy; With: use File::copy; under Win32, perl finds the file OK, but t

Re: Installing new Modules problem

2001-06-11 Thread Tony Cook
On Mon, 11 Jun 2001, Jos I. Boumans wrote: > my 2 bits say the latter is the easiest way, *if* it works of course... > sadly, ppm is not always up to date (they still ship POE 0.09, whilst we're > at 014 now, and dont even run imager or libwin32, but enough ranting). I have a simple repository t

Re: Command Line Arguments and @_

2001-06-04 Thread Tony Cook
On Mon, 4 Jun 2001, George Petri wrote: > > Hi! > > In a book called "Open Source Linux Web Porgramming" by Jones and Batchelor, > it says (on Page 61): > > "When you launch a script from the command line, for example, @_ populates > with all of the parameters passed in through the command l

Re: 'while' confusion

2001-05-30 Thread Tony Cook
On Wed, 30 May 2001, E. Alan Hogue wrote: ... > foreach $field (@fld_vals) { > while ($field = '') { > push (@nulls,$id); > } > } > > My idea was that $id would be, for instance, the > primary key value so that I could go look at the > record later. > > Well, it didn't

Re: Similar mail lists for Linux/Unix??

2001-05-23 Thread Tony Cook
On Wed, 23 May 2001 [EMAIL PROTECTED] wrote: > Can anyone suggest mailing lists for Linux similar to this one? Perhaps your local Linux User Group runs a help list. -- Tony

Re: Re[2]: ftp

2001-05-21 Thread Tony Cook
On Mon, 21 May 2001, kosta gruzdnev wrote: > > ActivePerl includes Net::FTP. You don't need to install it. > > As far as I can see, there is no such file like perl/lib/Net/FTP.pm on > my WindowsNT system. Moreover, the command "perldoc Net::FTP" results > in "No documentation found"; but this i

Re: ftp

2001-05-18 Thread Tony Cook
On Fri, 18 May 2001, kosta gruzdnev wrote: > Thank all the perl gurus answering our naive novices' questions. > > ok, now the problem is: > > I try to install Net::FTP in WinNT. ppm says there is no such PPD > file. That's ok, I don't object. As far as I can see, I cannot > influence it. Or can

Re: Oracle Database...

2001-05-15 Thread Tony Cook
On Tue, 15 May 2001, Ang Sei Heng wrote: > Hello Everyone, > > Recently I did some database connection to Oracle via DBD::Oracle. > > I manage to conncec to server, the follow statement does not > work: > > -- ## Begin Perl Code ## -- > > my $sqlcmd = "select * from street"; > >

Re: DBI and MS Access????

2001-05-15 Thread Tony Cook
On Mon, 14 May 2001, Mark Martin wrote: > Hi all, > > I'm looking for the quick and painless (idiots guide) instructions to > connect to an MS Access database running on NT from a Digital UNIX machine. > > Need to knows: > > What DBD:: ?? needs installing > > How should the database handle l

Re: send variable

2001-05-08 Thread Tony Cook
On Tue, 8 May 2001, nakosu-budi wrote: > i have try from john lee mail. but i got problem > the message syntax error at ./test.pl line 2, near "use > CGI." > Execution of ./test.pl aborted due to compilation errors. > > -- > this nextPage.p

Re: regexp trouble

2001-05-07 Thread Tony Cook
ither by modifying \w: $tmp =~ s/^[^\W_]+_//; or by literally choosing the characters you want to match (preferably using ranges): $tmp =~ s/^[a-z0-9]+_//i; The main problem with the first is that unless you've seen character classes used that way, you're likely to get mixed up on how it works. -- Tony Cook