how to use perl modules

2005-09-27 Thread Abhishek Dave
hello all, i've wrote a small test subroutine in my file name test.pm and in the same directory i worte a perl file in which i've to call this subroutine in this perl program I dont know how to use perl modules pls let me knwo abt that as it will solve my lots of problems test.pm sub ReturnVa

Re: Could [you] [please] tell me how to remove white spacees presentbetween delimiter[s]

2005-09-23 Thread Abhishek Dave
Hy, If i under stand clearly try this my $s="'123PS01A'~^ '123PS01B'~^ '123PS01C'~^ '123PS01D'~^"; my @abhi=split(/ /,$s); for ( my $i=0;$i<@abhi;$i++) { print $abhi[$i] . "\n"; } Abhishek Dave - Original Mess

Re: quick regex question

2005-03-31 Thread Abhishek Dave
just another method $str = q/[EMAIL PROTECTED]/; if ($str=~ /(\S*)(\@)(\S*)/) { $s=$3; $s=~tr|_|.|; $str=$1.$2.$s; } abhi - Original Message - From: "Ramprasad A Padmanabhan" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "perl beginners" Sent: Thursday, March 31, 2005 3:13 PM Subj

regexp help

2005-03-28 Thread Abhishek Dave
Hello , i am sticking with a problem to replace all words of a file in such a = manner that the first and second word need to interchanged. some thing like ... 10 11 2 20001 so that the output file will be 11 1 20001 2 any helpful regex ??? thanks

How to remove new line chars

2004-10-21 Thread Abhishek Dave
I am stucking with my problem of reading xml file , I am trying to remove the new line chars form xml file and just readout the xml tags. Please any guys have a look at this one. please guide me some good stuff abut regex in perl . Thanks and Regards, abhishek