The textbook example (from Brealey, et. al. I presume) involves a perpetituity with annual compounding and compares two scenarios: (1) one payment, $C$, at the end of each year and (2) "continuous cash flows" over the year (summing to C): a good approximation to daily payments of C/365.
I derived the following equation from first principles:
$$
\frac{C/n}{\left(1+\frac{r}{m}\right)^{m/n}-1}\left( 1- \left(1+\frac{r}{m}\right)^{-mT} \right)
$$
This calculates the value of a $T$-year annuity, compounded $m$ times a year, with $n$ payments during the year adding up to an annual payment of $C$.
If we take the limit as $ n \rightarrow \infty$, we get the special case with continuous cash flows (after applying La Hopital's Rule):
$$
\frac{C}{\ln\left(1+\frac{r}{m}\right)^{m}}\left( 1- \left(1+\frac{r}{m}\right)^{-mT} \right)
$$
In the textbook, $m=1$ (annual compounding) and $T \rightarrow \infty$ (perpetuity). I suspect this gives the equation you are looking for:
$$
\frac{C}{\ln\left(1+r\right)}
$$
Notice that $\ln\left(1+r\right)$ is the continuous compounded rate with an effective annual interest rate of $r$. Since the continuously compounded interest rate is less than its corresponding effective annual rate then $\ln\left(1+r\right) < r$, so continuous payments are worth more than a single end-of-year payment.
This is consistent with the textbook Example 2 since $r =18.5\%$ and so $\ln\left(1+r\right)=17\%$. For $C=\$100$, the perpetuity with continuous cash flow is valued at $100/.17$, which is compared with the standard formula for a pertituity namely $C/r = 100/.185$.
The more general formulation can be used with Example 3, where $T=20$ and $C=\$200,000$.
Finally, take the limit as $m \rightarrow \infty$, and we get the formula for continuous compounding:
$$
\frac{C/n} {e^{r/n}-1}\left(1- e^{-rT}\right)
$$
And as $n \rightarrow \infty$, again using La Hopital's Rule,
$$
\frac{ A}{r}\left(1- e^{-rT}\right)
$$