open( SANCLI, "datapath query essmap |" ) or die "unable to open pipe... $!"; $_ = ; # read first line, do nothing with it while() { ...