Re: Edit a file inplace..

2004-07-19 Thread James Edward Gray II
On Jul 19, 2004, at 10:56 AM, [EMAIL PROTECTED] wrote: Hi, I am trying to edit an ASCII file in place… I tried … perl -pi -ne "s/ERROR/TRACKED/g" status.log Well, we definitely don't need -p and -n, since -p is -n plus some. and received… Can't do inplace edit without backup… Okay, le

RE: Processing files in Multiple directories (Bash or Perl?)

2004-07-19 Thread Moon, John
Original Message- From: Edward WIJAYA [mailto:[EMAIL PROTECTED] Sent: Monday, July 19, 2004 11:37 AM To: [EMAIL PROTECTED] Subject: Processing files in Multiple directories (Bash or Perl?) Hi, I have a perl code, with usage: mycode.pl file.txt > file1.out Now I would like to execute this c

perl.beginners Weekly list FAQ posting

2004-07-19 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

Processing files in Multiple directories (Bash or Perl?)

2004-07-19 Thread Edward WIJAYA
Hi, I have a perl code, with usage: mycode.pl file.txt > file1.out Now I would like to execute this code for files in multiple directory (e.g. dir1, dir2, dir3, ...dir10). As I am new for both Bash and Perl, would like to know if it is be easier to do this with Perl or Bash? I have already have a b

Re: Another Perl datatype headache ( scalars $, hashes %, and arrays @ )

2004-07-19 Thread James Edward Gray II
On Jul 18, 2004, at 7:59 PM, gohaku wrote: Hi everyone, Howdy. after writing perl scripts for about 3 years now, I still have trouble with the basic datatypes. I know that variables that start with '$' are scalars. This covers Hashes ($HASH{$key}), Arrays ( $_[0] ), and regular scalar values ( $fo

Re: Pattern Matching records from a table query.

2004-07-19 Thread jason corbett
Thanks James. I am going to try this method also. Your input is very much appreciated. JC James Edward Gray II <[EMAIL PROTECTED]> wrote: On Jul 16, 2004, at 3:46 PM, jason corbett wrote: > I want to eliminate the ". " (periord) or "," (comma) from records > that I return from a query, but I c

RE: Another Perl datatype headache ( scalars $, hashes %, and arr ays @ )

2004-07-19 Thread Hanson, Rob
> I still don't know how to declare arrays using only '$' instead of '@' You can't. But you can store a *reference* to an array in a scalar. This will work: # the backslash ("\") returns a reference to the # variable, so this doesn't actually pass the array, # it passes a reference (pointer sor

RE: Perl and XML::Simple

2004-07-19 Thread Hanson, Rob
> This isn't well-formed XML. The n=3 must be n="3". All attributes in XML must be quoted, either single-quotes or double-quotes. Rob -Original Message- From: David Arnold [mailto:[EMAIL PROTECTED] Sent: Monday, July 19, 2004 2:04 AM To: [EMAIL PROTECTED] Subject: Perl and XML::Simple

[This is what I needed]Pattern Matching records from a table query.

2004-07-19 Thread jason corbett
Thanks. I was using the Pipe thing, but the fact is my client wants it in Excel and to be able to open it immediately and not "click around with the parameters" as they are not Excel friendly (go figure). I appreaciate your willingness to carry the question out to a solution/example and not a qu

problem while building DBD:Adabas

2004-07-19 Thread Christian Stalp
Hello out there, I try to build a DBD:Adabas driver for DBI. And I got this dump: # perl Makefile.PL Configuring DBD::Adabas ... >>> Remember to actually *READ* the README file! And re-read it if you have any problems. Multiple copies of Driver.xst found in: /usr/local/lib/perl5/5.

Re: Another Perl datatype headache ( scalars $, hashes %, and arrays @ )

2004-07-19 Thread Robin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 19 Jul 2004 12:59, gohaku wrote: > To get the length of an array, it's $#array, not [EMAIL PROTECTED] or #$array. > Usually, I use scalar @array; They do different things, afaik. $#array gives you the index of the last entry in the array, scal