Let $H_i$ and $H_j$ be the hyperplanes in $\Bbb{P}^n$ defined by $x_i = 0$ and $x_j = 0$ with $i \neq j$. I want to show that any regular function on $\Bbb{P}^n - (H_i \cap H_j)$ is constant. Now I think I have the proof in my hands which is the following.
My proof: We have $$\Bbb{P}^n - (H_i \cap H_j) = (\Bbb{P}^n - H_i) \cup (\Bbb{P}^n - H_j).$$ The ring on regular functions on the left hand side should be equal to $\mathcal{O}(\Bbb{P}^n - H_i) \cap \mathcal{O}(\Bbb{P}^n - H_j)$. We know that $\mathcal{O}(\Bbb{P}^n - H_i) \cong (k[x_0,\ldots,x_n]_{x_i})_0$ and similarly for $x_j$. Thus for any regular function $h $ on $\Bbb{P}^n - (H_i \cap H_j)$, $$h = \frac{f}{x_i^k} = \frac{g}{x_j^m}$$ for some $f,g$ homogeneous polynomials respectively of degrees $k$ and $m$. Then by unique factorization and assuming that the fractions are in the lowest terms I conclude $k = m = 0$ so that $h \in k$.
My problem: The thing is, taking the intersection of two rings of regular functions requires knowing that they are both embedded into something big. What is this thing? I guess it would be the fraction field of $k[x_q,\ldots,x_n]$. Also, I am worried that my answer in some sense is "not canonical" because it requires me to make a choice in embedding the ring of regular functions inside of something.