Re: loop jumping

2004-06-15 Thread Jeff 'japhy' Pinyan
On Jun 15, [EMAIL PROTECTED] said: >I am trying to make subroutine which asks (via a regular expr) where some >files are and then list them - but I would like it to jump back to the >start of the loop if it does not find any files. > >The jumping part works if there are only files in the folder, a

RE: loop jumping

2004-06-15 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : I am trying to make subroutine which asks (via a regular : expr) where some files are and then list them - but I : would like it to jump back to the start of the loop if : it does not find any files. : : The jumping part works if there are only files

Re: loop jumping

2004-06-15 Thread Edward Wijaya
On Tue, 15 Jun 2004 09:39:31 +0200, <[EMAIL PROTECTED]> wrote: The jumping part works if there are only files in the folder, as soon as there are files and folders it does not jump out of the loop. Can any body give me an idea how to break this one?? Use "last" function. perldoc -f last Regards