in reply to Re^3: How to specify a Null char in a match operation
in thread How to specify a Null char in a match operation

C doesn't store the length of a string anywhere.

C doesnt have a string type at all. And IMO null-terminated character arrays have proven to be the most expensive design-fault in the entire history of computing, costing billions per year. In this respect I think that history has proven that Wirth was right and the Kernigham and Ritchie were wrong. Which I guess makes 1 for 30 or something :-)

---
$world=~s/war/peace/g

  • Comment on Re^4: How to specify a Null char in a match operation