Ah right. Overlooked the shortcut EMPTY <> Just not my way of doing it.. Alex ________________________________ Van: Vipin TS [vipin.ts@gmail.com] Verzonden: maandag 23 mei 2011 17:39 Aan: Bossers, Alex CC: Jayant Khopale; galaxy-dev@lists.bx.psu.edu Onderwerp: Re: [galaxy-dev] Need help with uploading a perl script in Galaxy local instance Hi Alex, Indeed looking at the script.... it should be possible to use it as Vipin indicated. However, for xml validity I wouldn't use the 'naked' > or < signs but use > instead. Thanks for pointing it. I am curious though on the script. Is it part of a larger script? Don't see any ARGs being read from command line.... but maybe my lack of knowledge.. ;P Alex I think there is a standard-in present inside the subroutine, as follows: sub process_diff { while(defined ($diff_line = <>)) ..... } regards, Vipin