Certification in Perl

2008-07-09 Thread Amit Saxena
Hi I would like to know is there any Perl specific certification which I can look forward to ? Note :- I was not sure to which mailing list should this query be sent, please let me know in case I have to send it to a different group / mailing list etc. Regards, Amit Saxena

Re: Freelance opportunities in Perl !

2008-07-09 Thread Dermot
2008/7/9 Amit Saxena <[EMAIL PROTECTED]>: > Hi > I have an IT experience in Perl, Shell Scripting, Pro*C, UNIX and SQL. > Note :- I was not sure to which mailing list should this query be sent, > please let me know in case I have to send it to a different group / mailing > list etc. You should p

RE: closing dbh with active statement handles

2008-07-09 Thread Stewart Anderson
Is that due to the "use strict ;" pragma? Ta Stu -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: 09 July 2008 06:07 To: luke devon; Perl Subject: Re: closing dbh with active statement handles From: "luke devon" <[EMAIL PROTECTED]> Hi Friends, Here, I

FW: Signal Handlers

2008-07-09 Thread Rajnikant
Can someone confirm whether you people getting my mails or not? If yes, please commment on following code _ From: Rajnikant [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 6:49 PM To: 'Perl Beginners' Subject: FW: Signal Handlers Hello all, I want to catch SIGSEGV signal, d

Re: Certification in Perl

2008-07-09 Thread Jenda Krynicky
Date sent: Wed, 9 Jul 2008 17:23:55 +0530 From: "Amit Saxena" <[EMAIL PROTECTED]> To: "Perl Beginners" Subject:Certification in Perl > Hi > > I would like to know is there any Perl specific certification which I can > look forward to ? http://www.perlmonks.org/?node_id=695267

Filtering contetn in a variable

2008-07-09 Thread luke devon
Hi I am storing IP in to a varable ,  $ip="172.22.8.10 \-"; but i wanted to filter out only the ip . how can i do that ? please help Thank you Luke Send instant messages to your online friends http://uk.messenger.yahoo.com

function call help

2008-07-09 Thread Irfan.Sayed
Hi All, I facing one issue in Perl script. I am executing one command in Perl script and taking the output of that command in one array. Now I want to execute some more commands on each value of the array. But the problem is that I am passing each value of the array as a argument to that

RE: function call help

2008-07-09 Thread Stewart Anderson
Lock is a perl function http://perldoc.perl.org/functions/lock.html #! /usr/bin/perl # Perl script to take the backup of critical clearcase data @vob_lst=(qw(test test1 test2)); foreach $a (@vob_lst) { lockvob($a); } sub lockvob { local ( $loc

Re: Define NULL value in Perl

2008-07-09 Thread yitzle
On Wed, Jul 9, 2008 at 2:30 AM, Thomas Bätzler <[EMAIL PROTECTED]> wrote: > NULL is a SQL term. The Perl equivalent is undef, i.e. > > $x = undef; NULL is used far more widely than in just SQL; it is used in C/C++, Java, Visual Basic and I'm sure many many more. -- To unsubscribe, e-mail: [EMAIL

Re: Filtering contetn in a variable

2008-07-09 Thread yitzle
On Wed, Jul 9, 2008 at 9:22 AM, luke devon <[EMAIL PROTECTED]> wrote: > Hi > I am storing IP in to a varable , $ip="172.22.8.10 \-"; > but i wanted to filter out only the ip . how can i do that ? please help > Thank you > Luke $ip =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/; $ip = $1; Or you can u

Re: Filtering contetn in a variable

2008-07-09 Thread Li, Jialin
i am not so sure what the input is, this simple regex should solve your problem: ($ip_filtered) = /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/ or to match more exactly, you can use: Regexp::Common On Wed, Jul 9, 2008 at 8:22 AM, luke devon <[EMAIL PROTECTED]> wrote: > Hi > I am storing IP in to a va

RE: function call help

2008-07-09 Thread Irfan.Sayed
Hi, Thanks for reply, but still the error is same. Following is script. #! /usr/bin/perl # Perl script to take the backup of critical clearcase data @vob_lst=system("/usr/atria/bin/cleartool lsvob -s"); foreach $a (@vob_lst) { lockvob($a); } sub lockvob() { local ($lockitem) = @_; print "

Re: Filtering contetn in a variable

2008-07-09 Thread luke devon
Thnks for the reply, I am receiving IP value as 192.168.10.5/ - From here , i wanted to filtered out the exact ip. i tried your example , but it didnt work. please help - Original Message From: "Li, Jialin" <[EMAIL PROTECTED]> To: luke devon <[EMAIL PROTECTED]> Cc: Perl Sent: Wednesda

Re: Filtering contetn in a variable

2008-07-09 Thread luke devon
Thnks for the reply, I am receiving IP value as 192.168.10.5/ - From here , i wanted to filtered out the exact ip. i tried your example , but it didnt work. please help - Original Message From: "Li, Jialin" <[EMAIL PROTECTED]> To: luke devon <[EMAIL PROTECTED]> Cc: Perl Sent: Wednesda

Re: Filtering contetn in a variable

2008-07-09 Thread luke devon
Thnks for the reply,   I am receiving IP value as 192.168.10.5/ -   From here , i wanted to filtered out the exact ip. i tried your example , but it didnt work. please help - Original Message From: yitzle <[EMAIL PROTECTED]> To: luke devon <[EMAIL PROTECTED]> Cc: Perl Sent: Wednesday,

Re: Filtering contetn in a variable

2008-07-09 Thread Gunnar Hjalmarsson
[ Please stop top-posting!!! ] luke devon wrote: Li, Jialin wrote: luke devon wrote: I am storing IP in to a varable , $ip="172.22.8.10 \-"; but i wanted to filter out only the ip . i am not so sure what the input is, this simple regex should solve your problem: ($ip_filtered) = /(\d{1,3}\

Re: Define NULL value in Perl

2008-07-09 Thread Jorge Almeida
On Tue, 8 Jul 2008, luke devon wrote: Hi How can we define NULL values in perl ? for instance if I wanted to assign a NULL value for a variable called "$x= , how would it be in the code ? I never had a use for NULL outside C and I have no idea why you would want it. Still, I would guess that

Re: closing dbh with active statement handles

2008-07-09 Thread Rob Dixon
luke devon wrote: > Hi Friends, > > Here, I am trying to connect sqlite DB and access some data for matching > values with STDIN.But when i try to debug the code it gives following > message. I went through google , and couldn't find any solution yet. Can some > body help me pelase. > > > cl

Re: Define NULL value in Perl

2008-07-09 Thread Rob Dixon
yitzle wrote: > On Wed, Jul 9, 2008 at 2:30 AM, Thomas Bätzler <[EMAIL PROTECTED]> wrote: >> NULL is a SQL term. The Perl equivalent is undef, i.e. >> >> $x = undef; > > NULL is used far more widely than in just SQL; it is used in C/C++, > Java, Visual Basic and I'm sure many many more. But sin

Re: Define NULL value in Perl

2008-07-09 Thread Brad Baxter
On Jul 9, 12:44 am, [EMAIL PROTECTED] (Luke Devon) wrote: > Hi > > How can we define NULL values in perl ? for instance if I wanted to assign a > NULL value for a variable called "$x= , how would it be in the code ? > > Thank you > Luke > > Send instant messages to your online friendshttp://uk.mes

Re: function call help

2008-07-09 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > > I facing one issue in Perl script. I am executing one command in Perl > script and taking the output of that command in one array. Now I want > to execute some more commands on each value of the array. > > But the problem is that I am passing each value of the arra

Re: matching lines like grep

2008-07-09 Thread Jay Savage
On Tue, Jul 8, 2008 at 10:52 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Rob Dixon wrote: >> >> Noah wrote: >>> >>> Rob Dixon wrote: Then I guess you are processing a file that originated on a Windows system? Windows text files have a sequence at the end of each record,

Re: matching lines like grep

2008-07-09 Thread Jay Savage
On Sun, Jul 6, 2008 at 6:57 PM, Noah <[EMAIL PROTECTED]> wrote: > Hi there fellow PERL coders. > > I am trying to match lines between a template file and a configuration file. > If the configuration is missing a particular line that is found in the > template file then it is printed. If the confi

Using a Perl script in AIX / Unix

2008-07-09 Thread Rob McGinness
Hi Everyone, I am very new to perl so I am not sure why my script is only partially working, so here is the problem. I am trying to compress files with certain filenames that are older than 7 days. But when running the script it only compresses the first file only and I get errors on the

Re: matching lines like grep

2008-07-09 Thread Gunnar Hjalmarsson
Jay Savage wrote: On Tue, Jul 8, 2008 at 10:52 AM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: Rob Dixon wrote: Noah wrote: @config_file_lines = ; s/\s+$/\n/ foreach @config_file_lines; The newline is only necessary if you perform the substitution only on one set of records. If you also a

Re: Using a Perl script in AIX / Unix

2008-07-09 Thread Rob Dixon
Rob McGinness wrote: > Hi Everyone, > > I am very new to perl so I am not sure why my script is only partially > working, so here is the problem. > > I am trying to compress files with certain filenames that are older than > 7 days. But when running the script it only compresses the first fil

using Expect.pm

2008-07-09 Thread Richard Lee
Hi guys, I was trying to use Expect.pm but it was just too hard for me to capture remote machine's output via below.. #!/usr/bin/perl use warnings; use strict; use Expect; my $exp = new Expect; my $password = 'abc123'; my $user = 'userX'; my $host = '10.3.1.2'; my $login = "/usr/bin/s

Re: Debug Help Please

2008-07-09 Thread Chris Charley
- Original Message - From: "Andy" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: Sent: Tuesday, July 08, 2008 9:31 PM Subject: Re: Debug Help Please On Jul 7, 2:16 pm, [EMAIL PROTECTED] (Andy) wrote: On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > Andy wrote: > >

perl module version checking

2008-07-09 Thread Anirban Adhikary
Dear List Can U please tell me how to check the version of any installed module in perl. If I want to check the version of version of DBI module then what is the syntax for it? Thanks & Regards in advance Anirban Adhikary

Re: perl module version checking

2008-07-09 Thread Octavian Rasnita
From: "Anirban Adhikary" <[EMAIL PROTECTED]>> Dear List > Can U please tell me how to check the version of any installed module in > perl. If I want to check the version of version of DBI module then what is > the syntax for it? > > Thanks & Regards in advance > Anirban Adhikary You can do: perl

Fwd: perl module version checking

2008-07-09 Thread Anirban Adhikary
Hi Can u please tell me where i need to use ' instead of " and what will be the syntax of that string. Because when I am using perl -MDBI -e "print $DBI::VERSION;" on my linux system I am not getting any output but the second option is working fine. Thanks & Regards in advance Anirban Adhikary.

Re: perl module version checking

2008-07-09 Thread Anirban Adhikary
Hi I am very very sorry for questioning like an idiot. Please forgive me for such a silly question. Thanks & Regards in advance Anirban Adhikary. On Thu, Jul 10, 2008 at 11:55 AM, Anirban Adhikary < [EMAIL PROTECTED]> wrote: > > Hi > Can u please tell me where i need to use ' instead of " and

Re: Fwd: perl module version checking

2008-07-09 Thread Laxminarayan Kamath
On Thu, July 10, 2008 11:55 am, Anirban Adhikary wrote: > Hi > Can u please tell me where i need to use ' instead of " and what will > be the > syntax of that string. Because when I am using perl -MDBI -e "print > $DBI::VERSION;" on my linux system I am not getting any output but the > second optio