RE: A regex problem.

2004-09-06 Thread Jaffer Shaik
Hi, Try in this way. Just remove "my", you will get it. $filedate = "C:/directory/MSISExport_20040814.csv"; ($filedate) =~ s/(\_\d+)//g; print "$filedate\n"; Thank you jaffer -Original Message- From: Denham Eva [mailto:[EMAIL PROTECTED] Sent: Monday, September 06, 2004 6:11 PM To: [EMAI

Reading a PDF file using PERL in UNIX

2004-07-23 Thread Jaffer Shaik
Dear Friends, My OS is unix. Using perl, I want to read a pdf file and print its contents. How can I achieve this using perl. Regards, Jaffer. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Count the occurence of a character

2004-07-23 Thread Jaffer Shaik
Dear Friends, I have the below strig $str = "abckdweqadidkisdikda"; In the above string, I want to count the occurrences of character 'a', i.e I should get count of a = 7. How can i achieve this in Perl. Thank you, Jaffer. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

swapping in perl

2004-07-23 Thread Jaffer Shaik
Dear Friends, I want to swap 2 variables without using a tempoarary variable. I know the below logic a=a+b b=a-b a=a-b Other than this logic, is thery any other way in perl. Regards, Jaffer. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: Query

2004-06-09 Thread Jaffer Shaik
Hey what i got with the below info is data.file is having line 'Vijayb:12345:Vijay B bharghav' $cat data.file Vijayb:12345:Vijay B bharghav you want to extract 'bharghav' from the file data.file? i'm i right? if it is thatdo like below you will get this... $cat data.file | awk '{pr