Re: HANDY PERL ONE-LINERS

2006-07-14 Thread Chandru
here. Thats what I am also looking for... If moderator accepts we can keep updating the one-list. It'll be useful for most of the perl users... -- Thanks & Regards Chandru -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://lea

Re: calling a perl script on windows

2006-07-12 Thread Chandru
path to the perl interpreter. For example if you installed in c:\perl\ #!/perl/bin/perl Windows will search only C: drive for this. -- Thanks & Regards Chandru -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/

Re: PERL CGI drop down list

2006-06-16 Thread Chandru
(); print $p->popup_menu(-name=>'dropdown',-values=>['one','two','three','four']); print $p->end_html; Seems good :) -Chandru -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Modifying a string

2006-06-02 Thread Chandru
Hi mick try this #!/usr/bin/perl -w my $mac = '0a0a0a0a0a0a'; $mac=~ s/(..)/$1:/g; chop($mac); print $mac; - Chandru [EMAIL PROTECTED] wrote: Hi, I'm currently trying to find a good way to modify a string. A program returns me a MAC address under the form 0a0a0a0a0a0a, and

Re: sorting?

2006-05-30 Thread Chandru
Hi $ cat data "chandru k" <[EMAIL PROTECTED]> "prg " <[EMAIL PROTECTED]> "chandru k" <[EMAIL PROTECTED]> $ cat script.pl #!/usr/bin/perl while(<>) { chomp; ($mail,$name)=split(/\t/,reverse($_),2); $ha{revers

Re: Sum problem

2006-05-29 Thread Chandru
Hey problem with your for loop #!/usr/bin/perl -w while (<>) { chomp; ($name,$value)=split(/\t/); $ha{$name}+=$value; } foreach $i(sort keys %ha) { print$i." ".$ha{$i}."\n"; } - Chandru Andrej Kastrin wrote: Dear Perl users, I have 2 columns, tab

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-22 Thread Chandru
Hi I have looked some example scripts in Perl. I would like to have some pdfs or chms to guide myself.Can any one has such books. - Chandru Ryan Frantz wrote: -Original Message- From: Chandru [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 2:23 AM To: Jeff Pang Cc

Re: Looking for example Perl scripts to be used in Perl Training.

2006-05-21 Thread Chandru
please send it -Chandru. Jeff Pang wrote: Looking for example Perl scripts to be used in Perl Training. I am going to do a Perl training to a group of people. I was wondering from where I can get some sample Perl scripts to be used to demonstrate the basic usage of Perl. Thanks. I