  The higher-order dispersive and nonlinear effects (alias {\it the
perturbation terms}) like the third-order dispersion, the self-steepening, and
the self-frequency shift play important roles in the study of the ultra-short
optical pulse propagation. We consider optical rogue wave solutions and
interactions for the generalized higher-order nonlinear Schr\"odinger (NLS)
equation with space- and time-modulated parameters. A proper transformation is
presented to reduce the generalized higher-order NLS equation to the integrable
Hirota equation with constant coefficients. This transformation allows us to
relate certain class of exact solutions of the generalized higher-order NLS
equation to the variety of solutions of the integrable Hirota equation. In
particular, we illustrate the approach in terms of two lowest-order rational
solutions of the Hirota equation as seeding functions to generate rogue wave
solutions localized in time that have complicated evolution in space with or
without the differential gain or loss term. We simply analyze the physical
mechanisms of the obtained optical rogue waves on the basis of these
constraints. Finally, The stability of the obtained rogue-wave solutions is
addressed numerically. The obtained rogue wave solutions may raise the
possibility of relative experiments and potential applications in nonlinear
optics and other fields of nonlinear science as Bose-Einstein condensates and
ocean
