anees aneeshaidergmailcom aug 7 506 pm robdigmxcom rob dixon wrote anees wrote dear friends perl begineer created script prints 100th record file shown usrbinperl maxrecords20000 steps100 index1 reccounter0 ifdefined index steps 0 print _ reccounter ifreccounter maxrecords break index script works fine modify script follows usrbinperl maxrecords20000 steps100 index1 reccounter0 defined index steps 0 print _ reccounter ifreccounter maxrecords break index wont give records please identify difference behavior special behaviour readline assigning record _ checking definedness happens condition contains single operator make complicated perl compiles exactly write reads record file assigns _ exits loop _ undefined executes body loop defined_ whereas defined reads record file discards exits loop _ undefined executes body loop asked hth rob thank got idea defined needed _ assigned simplest form thanks unsubscribe email beginnersunsubscribeperlorg additional commands email beginnershelpperlorg httplearnperlorg thu 07 aug 2008 055818 0700 perl clearification