For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > October 2004 > how can I do it with perl









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how can I do it with perl
sherif_elgohari

2004-10-31, 5:02 am

Hi everybody,

Do any one know how to use addresses in perl regular expression?! The question in another form is how can I perform this sed script


$ sed '0,/^[ \t\r\n]*$/d' somefile

on a scalar variable. This sed script intend to delete lines in a file starting from the first ine untill finding a blank line


Thanks and Best Regards

Sherif Elgohari
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com