What wrong with this code

2008-08-25 Thread Anirban Adhikary
Dear List I have write the The following code to check a file and print only distinct lines to a new file and skips the duplicate lines. My source file is as follows hello how are you? hello how are you? What language did you want to use? What language did you want to use? I am here You are there

threads and processes with redirected STDOUT and STDERR on win32

2008-08-25 Thread Alexandru Maximciuc
Hello beginners, any hints on this problem? win32... I have N threads. in each thread I want to run a command and redirect it's STDERR and STDOUT to a filehandle/socket opened in the main thread. I tried with IPC::Run3 but the outputs get scrambled. -- Best regards, Alexandru

Re: What wrong with this code

2008-08-25 Thread Xavier Mas
El Monday 25 August 2008 11:30:19 Anirban Adhikary va escriure: > Dear List > I have write the The following code to check a file and print only distinct > lines to a new file and skips the duplicate lines. My source file is as > follows > > hello how are you? > hello how are you? > What language d

Re: What wrong with this code

2008-08-25 Thread Rob Dixon
Anirban Adhikary wrote: > Dear List > I have write the The following code to check a file and print only distinct > lines to a new file and skips the duplicate lines. My source file is as > follows > > hello how are you? > hello how are you? > What language did you want to use? > What language did

Re: What wrong with this code

2008-08-25 Thread John W. Krahn
Anirban Adhikary wrote: Dear List I have write the The following code to check a file and print only distinct lines to a new file and skips the duplicate lines. My source file is as follows hello how are you? hello how are you? What language did you want to use? What language did you want to use

XPUSHs

2008-08-25 Thread Patrick Dupre
Hello, I need to make a XPUSHs of a referene on an array, but XPUSHs takes only scalar, so it looks like that I need convert my AV* into a scalar with a newSV, but I do not know exactly. Can I have some help ? Regards -- --- ==

Re: What wrong with this code

2008-08-25 Thread Anirban Adhikary
Thanks a lot John . I have a little question can u please dexcribe in detail what this line is doing actually unless ( $seen{ $_ }++ ) Thanks & regards in advance Anirban Adhikary On Mon, Aug 25, 2008 at 5:34 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > Anirban Adhikary wrote: > >> Dear List

Re: code to fetch, configure, and build two library packages - can it be better?

2008-08-25 Thread Ed
On Aug 21, 8:32 am, [EMAIL PROTECTED] (Yitzle) wrote: > On Wed, Aug 20, 2008 at 7:37 AM, Ed <[EMAIL PROTECTED]> wrote: > > Howdy all! > > > As part of a test script, I have to make sure my test machine (i.e. > > the machine that is running the script) has libraries zlib and hdf5. I > > do that with

RE: "use constant" as hash key

2008-08-25 Thread Moon, John
> How can I use a "constant" as a hash key? > > $ perl -e 'use constant CAT=>A; >> $hash{CAT} = q{Bobby}; >> $hash{"CAT"} = q{Muffy}; >> $hash{'CAT'} = q{Fluffy}; >> $hash{qq{CAT}} = q{Tuffy}; >> print "$_ = $hash{$_}\n" foreach (keys %hash);' > CAT = Tuffy > $ > > Want... > > A=Bobby See the "

Re: What wrong with this code

2008-08-25 Thread John W. Krahn
Anirban Adhikary wrote: On Mon, Aug 25, 2008 at 5:34 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: The usual way to do what you want is to use a hash: use strict; use warnings; print "Enter the Absolutepath of the file\t"; chomp( my $filename = ); open my $FH, '<', $filename or die "Cannot

Re: Send both parts of a multipart email

2008-08-25 Thread David Allender
On Aug 23, 12:53 am, [EMAIL PROTECTED] (Dr.Ruud) wrote: > David Allender schreef: > > > I was wondering if i can send both parts of a multipart email. > > Basically what im trying to do is, > > > send an email to a person with text/enriched text at the top of the > > email, and text/html at the bot

Re: code to fetch, configure, and build two library packages - can it be better?

2008-08-25 Thread yitzle
On Sun, Aug 24, 2008 at 9:29 AM, Ed <[EMAIL PROTECTED]> wrote: > On Aug 21, 8:32 am, [EMAIL PROTECTED] (Yitzle) wrote: >> On Wed, Aug 20, 2008 at 7:37 AM, Ed <[EMAIL PROTECTED]> wrote: >> I might be way off here, but wouldn't it make sense to use the CPAN >> package to do package installation? > >

Re: "use constant" as hash key

2008-08-25 Thread Xavier Mas
El Monday 25 August 2008 14:30:14 Moon, John va escriure: > > How can I use a "constant" as a hash key? > > > > $ perl -e 'use constant CAT=>A; > > > >> $hash{CAT} = q{Bobby}; > >> $hash{"CAT"} = q{Muffy}; > >> $hash{'CAT'} = q{Fluffy}; > >> $hash{qq{CAT}} = q{Tuffy}; > >> print "$_ = $hash{$_}\n"

Perl and "vi" (not "vim") , ctags like feature in Perl !

2008-08-25 Thread Amit Saxena
Hi all, - I am using Perl 5.8.4 and "vi" (not "vim") on Solaris 9. While developing my Perl programs, I have to open two sessions one for my "vi" session and another where I run my perl programs. Moreover, in some scenarios, I have to open a sqlplus session to access Oracle 10g. Shifting bet

Re: Send both parts of a multipart email

2008-08-25 Thread Rob Dixon
David Allender wrote: > > Thanks all, I think I have came up with a conclusion. > > I think I would just send the HTML as an attachment, but is there a way for > me to do it in the cgi without having to put a ? > > Also, I dont believe I can use a module, so that would be sort of a > hindrance. >

Decrementing Characters

2008-08-25 Thread Jeff Westman
Hi, Simple question here. I need to decrement a character "counter". Incementing works fine, but not decrementing. I have: #!/bin/perl use warnings; $var = 'm'; print "var was $var\n"; $var++; print "var was $var\n"; --$var; print "var is $var\n"; And I get: 0: rc-hp18:/home/dnxjjw5/dev $

Re: Decrementing Characters

2008-08-25 Thread Jenda Krynicky
From: "Jeff Westman" <[EMAIL PROTECTED]> > Simple question here. I need to decrement a character "counter". > Incementing works fine, but not decrementing. > > I have: > > #!/bin/perl > use warnings; > $var = 'm'; > > print "var was $var\n"; > $var++; > print "var was $var\n"; > --$var; > prin

Re: Send both parts of a multipart email

2008-08-25 Thread Dr.Ruud
Rob Dixon schreef: > - Outlook is many years old, and even the email client on Vista is > better. I guess you are mixing up Outlook and Outlook Express there. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: How to compress an exe file?

2008-08-25 Thread sanket vaidya
Hi Raymond, Thanx a lot for suggestion. -Original Message- From: Raymond Wan [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2008 11:21 AM To: sanket vaidya Cc: beginners@perl.org Subject: Re: How to compress an exe file? Hi Sanket, sanket vaidya wrote: > I have made a

Re: Send both parts of a multipart email

2008-08-25 Thread Rob Dixon
Dr.Ruud wrote: > Rob Dixon schreef: > >> - Outlook is many years old, and even the email client on Vista is >> better. > > I guess you are mixing up Outlook and Outlook Express there. No I understand the difference. Outlook first came out in 1997 and has been tweaked almost annually ever sinc

Re: Send both parts of a multipart email

2008-08-25 Thread Jeff Pang
Outlook has great features to be combined with MS's Exchange. Outlook Express is just an email client, which even can't support IMAP protocal. I once worked on email systems, had dozens of accounts set up in my OE,:) -- Jeff Pang - using one of my 1000+ email accts > Message du 26/08/08 07:26