Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dealing with the unix version of \n

Status
Not open for further replies.

Siberdude

Programmer
Apr 4, 2000
29
GB
Howdy all.. just got access to an ICOM server (MUCH better than the IIS one i was using).
problem is, where before on the IIS server i could search and destroy the \n charactor. Now its become an "
" (square) and i can't use search and replace ot deal with it any more.
Does anyone have any ideas on how to remove it?Thanks
Sib
Siberdude
siberdude@settlers.co.uk
 
You may be having trouble with carriage returns (\r). Try,

chomp;
or
$str =~ s/\n|\r//gs; #replace

HTH


keep the rudder amid ship and beware the odd typo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top