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
Hi all,
Thank u for your help :)
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
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
>
>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
> 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
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
> -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
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
--- 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
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
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
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
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
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
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
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
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
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
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
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
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
22 matches
Mail list logo