Two large families with small flowers without petals can be distinguished by carefully observing the stem:
The stem of the species belonging to the Poaceae family is hollow inside, circular in section, and interrupted by swollen nodes:


The stem of the species belonging to the Cyperaceae family is solid inside, often (but not always) triangular in section, and not interrupted by swollen nodes: