Hi,
Perl 5.8.8 on Slackware 10.2
As to the libdb's: (the default for Slack 10.2) appears to be onboard 3
different versions of libdb (Sleepycat)
Ideas, suggestions to get it working?
How to tell if it's a Perl or a C init thing?
/usr/lib/perl5/5.8.8/i486-linux/auto/DB_File/DB_File.so doe
I have a question related to copying a string variable in perl.
Actually in my program iam splitting the entries of /etc/shadow file,
and
storing the first two fields i.e username and password in a variable,
and
i want to write this variable to /usr/local/cvsn/CVSROOT/passwd file
, inorde
Hello,
> my @fields = split(/:/, $_);
>$pass = join(':', $fields[0],$fields[1]);
Yes,you are right here.for more briefness,I would write it as below instead,
my $pass = join ':',((split /:/,$_)[0,1]);
>#my $MYFILE = '/usr/local/cvsnt/CVSROOT/passwd';
>syswrite ('/usr/local/cvsnt/CVSROOT/pass
Hi: I think this is very trivial, but just can't seem
to figure it out. I have two strings $var1 = "0.12"
and $var2 = "0.3". I want to add these two and have
0.42 in $result, but $result = int($var1) + int($var2)
always results to 0?
What am I doing wrong.
Thanks
Ray
___
Just do $result = $var1 + $var2;
int returns the integer part of a number,
see: perldoc -f int
JeeBee
On Tue, 14 Feb 2006 07:04:18 -0800, Ravi Malghan wrote:
> Hi: I think this is very trivial, but just can't seem to figure it out. I
> have two strings $var1 = "0.12" and $var2 = "0.3". I want t
Thanks
--- JeeBee <[EMAIL PROTECTED]> wrote:
>
> Just do $result = $var1 + $var2;
> int returns the integer part of a number,
> see: perldoc -f int
>
> JeeBee
>
> On Tue, 14 Feb 2006 07:04:18 -0800, Ravi Malghan
> wrote:
>
> > Hi: I think this is very trivial, but just can't
> seem to figure
Dear list
It's very strange:
My apache doesn't start with
[error] Can't locate SMF/Config.pm in @INC (@INC contains: /opt/smf/lib [...])
at /opt/smf/apconf/backend/httpd_startup_smf.pl line 228.
But why? The file is there:
# ls /opt/smf/lib/SMF/Config.pm
/opt/smf/lib/SMF/Config.pm
and the pa
I am trying to allow input of a person's first and last name in one form
field, nothing more, nothing less
There should be only one uppercase A-Z character followed by one or
more lowercase a-z characters followed by one space followed by one
uppercase A-Z character followed by one or more lowerca
Hi;
What is the correct path separator for "use lib" in a Perl program on
Windoze when I have multiple paths?
What is the correct path separator when using PERL5LIB on Windoze?
Apparently a colon is not a good choice as that is the Windoze
separator between drive/partition names and the pa
Hi all,
I need to execute the code found in a separate file (that file is
written by another script).
I wrote:
my $nf = shift();
chomp($nf);
require("./ricerche/$nf.pl");
see what happens:
Can't locate ./ricerche/VALICO672.pl in @INC (@INC contains:
/System/Library/P
What about (untested)
/^[A-Z][a-z]+\s[A-Z][a-z]+$/
This forces one uppercase letter followed by one or more lowercase
letters, followed by a space, followed by one uppercase letters and
terminated by one or more lowercase letters. This does not force a
limit on the total number of characters.
H
Hans Meier (John Doe) am Dienstag, 14. Februar 2006 19.08:
> It's very strange:
>
> My apache doesn't start with
>
> [error] Can't locate SMF/Config.pm in @INC (@INC contains: /opt/smf/lib
> [...]) at /opt/smf/apconf/backend/httpd_startup_smf.pl line 228.
>
> But why? The file is there:
>
> # ls /
On 2/14/06, Chas Owens <[EMAIL PROTECTED]> wrote:
> On 2/14/06, Wolcott, Kenneth A <[EMAIL PROTECTED]> wrote:
> > Hi;
> >
> > What is the correct path separator for "use lib" in a Perl program on
> > Windoze when I have multiple paths?
>
> Multiple "use lib" statements:
>
> use lib "/usr/local/pe
On 2/14/06, Wolcott, Kenneth A <[EMAIL PROTECTED]> wrote:
> Hi;
>
> What is the correct path separator for "use lib" in a Perl program on
> Windoze when I have multiple paths?
Multiple "use lib" statements:
use lib "/usr/local/perl";
use lib "/opt/perl";
use lib "~/perl";
>
> What is the cor
hello Friends,
Have anyone tried stopping a service say httpd usng a
cgi script ?
I have set a setuid for the cgi script and the script
is in the root cgi-bin directory namely
/var/www/cgi-bin/ with ownership root and have the
following contents in the file
#!/usr/bin/perl
$ENV{'PATH'} = '/bin:/u
Gerald Wheeler am Dienstag, 14. Februar 2006 21.03:
> I am trying to allow input of a person's first and last name in one form
> field, nothing more, nothing less
>
> There should be only one uppercase A-Z character followed by one or
> more lowercase a-z characters followed by one space followed b
On 2/14/06, Gerald Wheeler <[EMAIL PROTECTED]> wrote:
> I am trying to allow input of a person's first and last name in one form
> field, nothing more, nothing less
>
> There should be only one uppercase A-Z character followed by one or
> more lowercase a-z characters followed by one space followed
On 2/13/06, DEVARAJA AP <[EMAIL PROTECTED]> wrote:
>i wrote a perlscript to generate a verilog code with instantiations .in
> this
> after instantiation, the ports getting as eg
> module_name name(.a(a),.b(b),...)
>
> but for connection sakeif want to connect a t
Someone has already given you a Regex that will work, but I wanted to
show you what happened with the regex you provided.
What I see in your regex is:
/^
Start of the line
[A-Z a-z]
One uppercase letter, space, or lowercase letter.
It looks like you're trying to include two character classes i
Hans Meier (John Doe) am Dienstag, 14. Februar 2006 21.35:
> if (/^\s*([A-Z][a-z])+\s*([A-Z][a-z])+\s*$/) {
> # input is ok, so now we format:
> my $formatted="$1 $2";
> do_something_with($formatted);
> }
Sorry, this is completely bullshit, shuld have tested before hitting send.
my $user
Glad I was able to help.
Ken Wolcott
-Original Message-
From: Gerald Wheeler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 14, 2006 2:31 PM
To: Wolcott, Kenneth A
Subject: RE: regexpressions help
Kenneth,
works for me
much appreciated..
Jerry
>>> "Wolcott, Kenneth A" <[EMAIL
On 2/14/06, Adriano Allora <[EMAIL PROTECTED]> wrote:
> Can't locate ./ricerche/VALICO672.pl in @INC (@INC contains:
> the pathname is correct (the code in the separate file too), alla
> permissions are ok, but I cannot include it.
The dot at the start of the pathname means that the pathname is
Devaraja,
Is this a question about vperl?
You speak of generating verilog code. Is the instantiation you speak
of the instantiation of your block that is defined in verilog?
What do you mean by "the instantiation part of the perl script"?
--Marilyn
Tom Phoenix wrote On 02/14/06 09:49,:
> On 2/
I had the same thought. Is there a reason why the OP doesn't want to
give the user two prompts? It seems like the most stable way of getting
the information.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Tom Phoenix
Sent: Tuesday, February 14, 2006 1:
On 2/14/06, Gerald Wheeler <[EMAIL PROTECTED]> wrote:
> I am trying to allow input of a person's first and last name in one form
> field, nothing more, nothing less
Robert de Niro?
Mary Kay Place?
Arthur Conan Doyle?
Harry S Truman?
Kim Jong-il?
brian d foy?
Sting?
John Paul II?
George W. Bush?
P
Hi: I have created a simple script to log syslog
messages with the following lines
openlog('lab-sensor', 'cons,ndelay,nowait','local7');
syslog('debug', 'this is a test message');
When I run this locally (local hostname: nms02), the
following message shows up in the syslog file.
Feb 14 16:50:37
On 2/14/06, nishanth ev <[EMAIL PROTECTED]> wrote:
> I have set a setuid for the cgi script
You webserver may not be running this program set-id, even if you use
the setuid bit, for security reasons. You can find out the user id
it's running under with the $< and $> variables. See perlvar.
> Hav
nishanth ev am Dienstag, 14. Februar 2006 17.56:
> hello Friends,
>
> Have anyone tried stopping a service say httpd usng a
> cgi script ?
> I have set a setuid for the cgi script and the script
> is in the root cgi-bin directory namely
> /var/www/cgi-bin/ with ownership root and have the
> followi
"Hans Meier (John Doe)" <[EMAIL PROTECTED]> wrote:
>
> Gerald Wheeler wrote:
>> I am trying to allow input of a person's first and last name in one
>> form field, nothing more, nothing less
>>
>> There should be only one uppercase A-Z character followed by one or
>> more lowercase a-z characters fo
-Original Message-
From: David Kaufman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 14, 2006 1:23 PM
To: beginners@perl.org
Subject: Re: regexpressions help
>"Hans Meier (John Doe)" <[EMAIL PROTECTED]> wrote:
>>
>> Gerald Wheeler wrote:
>>> I am trying to allow input of a person's
On 2/14/06, Hans Meier (John Doe) <[EMAIL PROTECTED]> wrote:
> I'm fine with that, but still don't understand how a path present in @INC is
> ignored.
It sure looks like it's in @INC, from the message. (You may know that
PERL5LIB is sometimes ignored for security reasons, but it's not
ignored if
On Tue, 14 Feb 2006, Tom Phoenix wrote:
> On 2/14/06, Gerald Wheeler <[EMAIL PROTECTED]> wrote:
>
> > I am trying to allow input of a person's first and last name in one
> > form field, nothing more, nothing less
>
> Robert de Niro?
> Mary Kay Place?
> Arthur Conan Doyle?
> Harry S Truman?
> Ki
On 2/14/06, Chris Devers <[EMAIL PROTECTED]> wrote:
snip
> So, as others have asked, is it really pragmatic to come up with a regex
> that will properly recognize any of these eccentric-but-real surnames,
> while rejecting "non-surnames" like, say...
>
> Time And Place
> Bee Sting
> Rose Bush
>
> .
I am using Apache::DB as interactive debugger to debug my modperl2 program.
No breakpoints are defined, I input many 'r' while requesting the home
page, and the return is always like below, and the home page can't be
displayed in the debug mode.
However, if turning off the debug mode, the home pa
Hello team,
Please help me on the following code. The code is supposed to receive to
words "cool" and "cash" plus a number from 0 to 10, with optional spaces
between the words.
When I run the program it gives me this error > "Can't find unicode
character property definition via main->a or a.pl
Hi all,
I have the following problem in the following regex replace.
$line=~s!\b($name)\b!$1!g;
here this regex finds the exact matching of the content in $name and does the
needed but in some examples the variable $name may contain backslash characters
like 'gene\l=s\' , in t
Hello folks,
Thanks a lot for the reply.
I dont mean exactly httpd.
Any Service will do.
I want to start and stop a serviec using cgi script.
Say mysql service will do,
#!/usr/bin/perl
`/etc/rc.d/init.d/mysqld restart`;
print"Content-type:text/html\n\n";
print"RESTARTED";
anand kumar wrote:
> Hi all,
Hello,
> I have the following problem in the following regex replace.
>
> $line=~s!\b($name)\b!$1!g;
>
> here this regex finds the exact matching of the content in $name and does
> the needed but in some examples the variable $name may contain backslash
> characters
38 matches
Mail list logo