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
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
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_name =
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 rules of 'use
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 letter? I
suspect
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.
between those 2
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
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
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 nothing
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.
HTH,
--
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
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,
--- 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 pick up a good book
on C
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
-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 java
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 words there is
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
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 PROTECTED]
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
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.
--
Hi all,
Thank u for your help :)
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 (
22 matches
Mail list logo