Photonic crystal fibers (PCFs) have attracted significant attention during the last years and much research has been devoted to develop fiber designs for various applications, hereunder tunable fiber devices. Recently, thermally and electrically tunable PCF devices based on liquid crystals (LCs) have been demonstrated. However, optical tuning of the LC PCF has until now not been demonstrated. Here we demonstrate an all-optical modulator, which utilizes a pulsed 532nm laser to modulate the spectral position of the bandgaps in a photonic crystal fiber infiltrated with a dye-doped nematic liquid crystal. We demonstrate a modulation frequency of 2kHz for a moderate pump power of 2-3mW and describe two pump pulse regimes in which there is an order of magnitude difference between the decay times.