RE: Define NULL value in Perl

2008-07-08 Thread Thomas Bätzler
luke devon <[EMAIL PROTECTED]> asked: > 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 ? NULL is a SQL term. The Perl equivalent is undef, i.e. $x = undef; To check for definedness of a vari

Re: Define NULL value in Perl

2008-07-08 Thread yitzle
On Wed, Jul 9, 2008 at 12:44 AM, luke devon <[EMAIL PROTECTED]> 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 The closest Perl has to NULL is undef. Or maybe

Freelance opportunities in Perl !

2008-07-08 Thread Amit Saxena
Hi I am looking for freelance opportunities in Perl. I have an IT experience in Perl, Shell Scripting, Pro*C, UNIX and SQL. Apart from my main job, I can devote around 10 hours per week initially, which I can adjust it to more as more and more work comes. Apart from me, some of my friends are al

Re: closing dbh with active statement handles

2008-07-08 Thread Octavian Rasnita
From: "luke devon" <[EMAIL PROTECTED]> 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.

Re: Debug Help Please

2008-07-08 Thread Andy
On Jul 7, 2:16 pm, [EMAIL PROTECTED] (Andy) wrote: > On Jul 7, 11:53 am, [EMAIL PROTECTED] (Rob Dixon) wrote: > > > > > Andy wrote: > > > > Funny how when you talk to different people you get different ways of > > > looking at it. > > > > One of the Perl guys at my office. told me that I can use >

closing dbh with active statement handles

2008-07-08 Thread luke devon
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. closing dbh with active statement han

Define NULL value in Perl

2008-07-08 Thread luke devon
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 friends http://uk.messenger.yahoo.com

Re: kill process when file number reached...

2008-07-08 Thread Jenda Krynicky
From: onlineviewer <[EMAIL PROTECTED]> > On Jul 1, 9:02 pm, [EMAIL PROTECTED] (Jenda Krynicky) wrote: > > From: onlineviewer <[EMAIL PROTECTED]> > > > I am trying to run a tcpdump and have perl kill the tcpdump once 10 > > > files have been created by the tcpdump. Here is my code, not sure...if > >

Re: Perl Audit Reports

2008-07-08 Thread michael wang
you may start with perl module File::Find to get all dir and files, and also look at perldoc -f stat to get file time and size informatiom. On 7/1/08, Kingmaker <[EMAIL PROTECTED]> wrote: > > I am new to perl . I need to write a perl script to generate an audit > report of a root directory and all

Re: Fwd: How attach files and send mails on perl????

2008-07-08 Thread John W. Krahn
[ Please do not top-post your replies. TIA ] Armin Garcia wrote: Hi ... Hello, Well Im sorry for my late reply but here is my final script ( wrotte by me ) of solve this problem ... #!/usr/bin/perl #Modulos use MIME::Lite; use warnings; use strict; ##

Re: Fwd: How attach files and send mails on perl????

2008-07-08 Thread Armin Garcia
Hi ... Well Im sorry for my late reply but here is my final script ( wrotte by me ) of solve this problem ... #!/usr/bin/perl #Modulos use MIME::Lite; use warnings; use strict; # Configuration ##

Re: matching lines like grep

2008-07-08 Thread Rob Dixon
Gunnar Hjalmarsson 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, whereas Unix files have just . is control-M, which is wh

Re: How to remove [], {}, and other characters, rendering numeric values in a CSV file ?

2008-07-08 Thread perez . erasmo
Hi dear Rob and friends from the list: Thank you very much for your great help. The code is now running flawlessly :-) Thank you very much for your time and shared knowledge Will try to give back a little bit of the much help received in this great community Kind regards Erasmo On 05/07/2008

Re: Debug Help Please

2008-07-08 Thread Andy
On Jul 7, 4:33 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > Andy wrote: > > > Funny how when you talk to different people you get different ways of > > looking at it. > > Yes, that is how the world works. In Perl there is the expression > TIMTOWTDI (There Is More Than One Way To Do It) which mea

Re: matching lines like grep

2008-07-08 Thread Gunnar Hjalmarsson
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, whereas Unix files have just . is control-M, which is why vim is showing ^M at the end of the line. What you

Re: recording with perl

2008-07-08 Thread Jay Savage
On Mon, Jul 7, 2008 at 2:24 PM, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > From: "Jay Savage" <[EMAIL PROTECTED]> >> >> On Sun, Jul 6, 2008 at 4:37 AM, Octavian Rasnita <[EMAIL PROTECTED]> >> wrote: >>> >>> Hi, >>> >>> Does anyone know if there is a perl module that can be used for recording >>>

Re: arrayref

2008-07-08 Thread Rob Dixon
elavazhagan perl wrote: > Hi.. > > Thanks Rob,with ur code ,Now I can display all the countries with > regions.Now i would like to display only countries specific to the region. > We can split the data and assign into two different arrays.Let me know is > there any specific way to retrive the

RE: arrayref

2008-07-08 Thread Stewart Anderson
Use this in the loop it might make it easier to see. foreach my $region ( keys %Regions ) { print "Region:\t$region\n" ; print "\t\t @{ $Regions{$region} }\n"; } -Original Message- From: elavazhagan perl [mailto:[EMAIL PROTECTED] Sent: 08 July 2008 12:00 To: Dr.Ruud; [EM

FW: Signal Handlers

2008-07-08 Thread Rajnikant
Hello all, I want to catch SIGSEGV signal, do some processing and after that want to call default SIGSEGV handler. I was not getting how to call default SIGSEGV handler. Following code snippet is the work around I'm using. Let me know if anything wrong in this code or your thaughts on this. loc

Re: matching lines like grep

2008-07-08 Thread Rob Dixon
Noah wrote: > Rob Dixon wrote: >> Noah wrote: >>> Rob Dixon wrote: Noah wrote: > let me put toether some bogus output files. You could just describe your output. Are you getting nothing at all? Or is it showing all lines of both files? Or none from one and all fr

Re: arrayref

2008-07-08 Thread elavazhagan perl
Hi.. Thanks Rob,with ur code ,Now I can display all the countries with regions.Now i would like to display only countries specific to the region. We can split the data and assign into two different arrays.Let me know is there any specific way to retrive the data ?? Thanks a lot #!

Re: arrayref

2008-07-08 Thread Dr.Ruud
"elavazhagan perl" schreef: > #Start > #! /usr/local/perl/bin > use strict; The shebang-line should be the first one. "use warnings;" is missing. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://l

Re: matching lines like grep

2008-07-08 Thread Noah
Rob Dixon wrote: Noah wrote: in line Below let me put toether some bogus output files. You could just describe your output. Are you getting nothing at all? Or is it showing all lines of both files? Or none from one and all from the other? Or just more or fewer lines than you think is correc

Signal Handlers

2008-07-08 Thread Rajnikant
Hello Gurus, I'm using following code snipet to catch SIGSEV signal. local $SIG{SEGV} = \&seg_handler; sub seg_handler { my $sig = shift; print "seg_handler :: Caught $sig \n"; } while (1) { print ("Still alive \n"); sleep 1; } When I send SEGV signal to this process (kill