[lug] sed replacment issue?

David L. Anselmi anselmi at anselmi.us
Mon Jul 11 17:16:50 MDT 2005


corn man wrote:
[...]
> There is no perticular reason I'm stuck with sed.
> 
>        %lpage = $PHAN->fetchhash;    # get page info in hash
> 
> into
>        $lpage_hashref = $PHAN->fetchrow_hashref;
>        %lpage = %$lpage_hashref;    # get page info in hash

I've never had much luck (or seen examples) of doing multi-line things 
with sed.  I'd use awk instead.  Or wait a bit and a Perl wizard will 
post you a one liner.

Dave



More information about the LUG mailing list