Searching a scalar for a return. 
Author Message
 Searching a scalar for a return.


Quote:
> can someone tell me how to search and entire scalar for every hard
> return and turn it into a <BR>?

Yes.

Daniel Lewart

-------------------------------------------------------------------------------
$rs = $/;
undef $/;
$_ = <>;
s/$rs/<BR>$rs/go;
print;
-------------------------------------------------------------------------------



Wed, 15 Apr 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Return value of a list in scalar context

2. XSUBs that return scalars or arrays depending on the context

3. returning tied scalar

4. return value of bare subroutine in list/scalar context

5. SOLVED: qx scalar returned in a list context

6. Function returning a list to a scalar

7. Returning list from subroutine into scalar context

8. Searching a Scalar List?

9. scalar global search

10. Searching and Replace scalars

11. WWW::Search not returning anything

12. Search text database, return line number containing a match

 

 
Powered by phpBB® Forum Software