Re: File::Find again

2007-03-23 Thread Alan
On Friday 23 March 2007 14:59, Matt Herzog wrote: [ . . ] > in the file, (.properties$) the search works fine. I need to be able to use > the variable $searchstring at the command line. Is this even possible? If [ . . ] > return unless ($_ =~ /\.properties$/); [ . . ] if ( /\Q

Re: how to redirect warnings to a file

2007-03-23 Thread lakshmi priya
Hi all, Thank u for your help :)

Re: File::Find again

2007-03-23 Thread Mumia W.
On 03/23/2007 04:59 PM, Matt Herzog wrote: Hello All. I can see why people hate this module but I can't seem to let go. [...] It's not really letting go if you use the File::Find::Rule module which uses File::Find behind the scenes. I have a feeling that you'll like File::Find::Rule. -- T

Re: hash referrences and such

2007-03-23 Thread Chad Kemp
Mathew, try to test every condition going INTO the hash (or hashes) before you actually assign a value to a key. as mentioned earlier, hashes must be key/value pairs. the key will auto-vivify if a key is "new" but only if a corresponding value accompanies it. when you assign values to a

Re: error in using sendmail.pm

2007-03-23 Thread Jeff Pang
> >Can't locate object method "new" via package sendmail > >Can anyone tell me why I get this error? > > Where is your sendmail.pm and where did you get it? We don't know it unless you provide more details. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: File::Find again

2007-03-23 Thread Jeff Pang
> I need to be able to use >the variable $searchstring at the command line. Is this even possible? Surely you can. Don't forget to put a \Q before the $searchstring. (from perldoc perlre: \E end case modification (think vi) \Q quote (disable) pattern metach

Re: Data manipulation.

2007-03-23 Thread Stanislav Nedelchev
Rob Dixon wrote: > Stanislav Nedelchev wrote: >> >> Hi to all , >> I'm trying to make one script that analyzes some data from a file. >> One guy from internet help me a lot . >> Here is how data is organized . >> Every row starts with skill_begin and it ends with skill_end. >> between those 2 wor

RE: File::Find again

2007-03-23 Thread Wagner, David --- Senior Programmer Analyst --- WGO
> -Original Message- > From: Matt Herzog [mailto:[EMAIL PROTECTED] > Sent: Friday, March 23, 2007 15:00 > To: Begin Perl > Subject: File::Find again > > Hello All. > > I can see why people hate this module but I can't seem to let go. > I point this script at a deep dir structure that has

File::Find again

2007-03-23 Thread Matt Herzog
Hello All. I can see why people hate this module but I can't seem to let go. I point this script at a deep dir structure that has java .properties files sprinkled throughout it. Right now when I have my regex "hard coded" in the file, (.properties$) the search works fine. I need to be able to use

Re: perldoc -q "How can I make my Perl program run faster?"

2007-03-23 Thread oryann9
--- Jay Savage <[EMAIL PROTECTED]> wrote: > On 3/22/07, oryann9 <[EMAIL PROTECTED]> wrote: > > > > > This really isn't a Perl question, though. If > you > > > have questions about > > > dynamic vs. static linking, and why you might > want > > > to do one or the > > > other, you should probably pi

error in using sendmail.pm

2007-03-23 Thread Lennart Andersen
Can't locate object method "new" via package sendmail Can anyone tell me why I get this error? -- Lennart Andersen St Thomas, Ontario http://www.landersen.net lka0871 at rogers dot com - Debian - I hack, therefore I am -- To unsubscribe

Re: Data manipulation.

2007-03-23 Thread Rob Dixon
Stanislav Nedelchev wrote: Hi to all , I'm trying to make one script that analyzes some data from a file. One guy from internet help me a lot . Here is how data is organized . Every row starts with skill_begin and it ends with skill_end. between those 2 words there is field_name = some_data and

Re: perldoc -q "How can I make my Perl program run faster?"

2007-03-23 Thread Jay Savage
On 3/22/07, oryann9 <[EMAIL PROTECTED]> wrote: > This really isn't a Perl question, though. If you > have questions about > dynamic vs. static linking, and why you might want > to do one or the > other, you should probably pick up a good book on C > and/or the C > compiler on your system. > > HT

Re: Learning Perl with shells operations

2007-03-23 Thread John W. Krahn
Rodrigo Tavares wrote: > Hello, Hello, > My code is below: > > $aux = `ls /opt`; > @word = split /\s+/, $aux; That won't work very well if you have names with embeded spaces. A better option would be to assign the back-quote results to an array. > my @bancos = (); Why are you assigning noth

Re: Learning Perl with shells operations

2007-03-23 Thread Jeff Pang
Hello, > >$aux = `ls /opt`; This is not good since Perl has built-in function for read a dir. see: perldoc -f opendir perldoc -f readdir > su postgres -c "/usr/local/pgsql/bin/pg_ctl start -D >@bancos[$i]"; 'su' is not Perl's function.This is a unix shell command,you need to call it with sy

Learning Perl with shells operations

2007-03-23 Thread Rodrigo Tavares
Hello, My code is below: $aux = `ls /opt`; @word = split /\s+/, $aux; my @bancos = (); foreach my $i (@word) { if ( -e "/opt/$i/postgresql.conf" ) { push(@bancos,$i); } } for ($i = 0; $i < @bancos; $i++) { su postgres -c "/usr/local/pgsql/bin/pg_ctl start -D @banco

Re: Data manipulation.

2007-03-23 Thread Stanislav Nedelchev
John W. Krahn wrote: > Stanislav Nedelchev wrote: >> Hi to all , > > Hello, > >> I'm trying to make one script that analyzes some data from a file. >> One guy from internet help me a lot . >> Here is how data is organized . >> Every row starts with skill_begin and it ends with skill_end. >> bet

Re: cannot determine peer address with Unix domain sockets

2007-03-23 Thread Andy Greenwood
On 3/23/07, John W. Krahn <[EMAIL PROTECTED]> wrote: Andy Greenwood wrote: > On 3/22/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: >> On 3/22/07, Andy Greenwood <[EMAIL PROTECTED]> wrote: >> >> > $Select = new IO::Select(); >> >> Is $Select a global variable? Is that why it's got a capital l

Re: cannot determine peer address with Unix domain sockets

2007-03-23 Thread John W. Krahn
Andy Greenwood wrote: > On 3/22/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: >> On 3/22/07, Andy Greenwood <[EMAIL PROTECTED]> wrote: >> >> > $Select = new IO::Select(); >> >> Is $Select a global variable? Is that why it's got a capital letter? I >> suspect that you're not coding under the ru

Re: Data manipulation.

2007-03-23 Thread John W. Krahn
Stanislav Nedelchev wrote: > Hi to all , Hello, > I'm trying to make one script that analyzes some data from a file. > One guy from internet help me a lot . > Here is how data is organized . > Every row starts with skill_begin and it ends with skill_end. > between those 2 words there is field_nam

Re: cannot determine peer address with Unix domain sockets

2007-03-23 Thread Andy Greenwood
On 3/22/07, Tom Phoenix <[EMAIL PROTECTED]> wrote: On 3/22/07, Andy Greenwood <[EMAIL PROTECTED]> wrote: > $Select = new IO::Select(); Is $Select a global variable? Is that why it's got a capital letter? I suspect that you're not coding under the rules of 'use strict'. I'm $Select is

Data manipulation.

2007-03-23 Thread Stanislav Nedelchev
Hi to all , I'm trying to make one script that analyzes some data from a file. One guy from internet help me a lot . Here is how data is organized . Every row starts with skill_begin and it ends with skill_end. between those 2 words there is field_name = some_data and etc. Some rows has more field