Hi I have written a program to monitor logs. Here I am substituting the file name dynamically say : /asffasddas/asdfadssdaf/logfiles/safdfsda/asdsdaf/fadsdsafasdffdsar_asdffdsa_asfdfsad_asfdfsda.log
would be: _fadsds So, I am not getting logic to capture this name Hope I am clear of my explanation Regards Sreedhar -----Original Message----- From: Chris Devers [mailto:[EMAIL PROTECTED] Sent: 22 October 2004 16:38 To: Kalkunte-Venkatachala, Sreedhar Cc: Perl Beginners List Subject: RE: how the print the first 7 letter of file name Please send all replies to the list, not to me directly. On Fri, 22 Oct 2004 [EMAIL PROTECTED] wrote: > I cannot use $np = "NewProcess" because it will be keep changing. Good -- so you recognize what you don't want. That's a start. > I cannot search '_' There is possibility that one more underscore may come in b/n. Ok. So, as I asked before, please state precisely and completely what you *do* need, and *what code you have tried so far*. > If you can give a sample program it will be useful Not a chance. Write your own program and I & the list will be happy to help, but this list does not exist to do people's jobs for them. Sorry. If you have code that isn't working, I'd be happy to help you work through whatever the problem may be, but I'm not going to take your vaguely defined requirements and do your job for you. Sorry. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>