Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!elroy.jpl.nasa.gov!cit-vax!jerbil From: jerbil@cit-vax.Caltech.Edu (Stainless Steel Gerbil [Joe Beckenbach]) Newsgroups: comp.lang.perl Subject: Subroutines Returning Null Arrays Message-ID: <13395@cit-vax.Caltech.Edu> Date: 18 Jan 90 01:51:39 GMT Reply-To: joe@cit-750.cs.caltech.edu (Joe Beckenbach) Organization: California Institute of Technology Lines: 27 Is there a way to force a subroutine to return a null array? Or. rather, I would like to do this: open( FILE, $file ); @array = do subrtn( $stuff, $n, $nonsense ); while ( $#array >= 0 ) { # fiddle $stuff and $nonsense # ... } continue { @array = do subrtn( $stuff, $n, $nonsense ); } close( FILE ); I would be grateful if someone would present a way to do this, for the way I'm trying to work things may be tripping a bug in my copy of perl, and I'm a bit beyond my frustration point at the moment to try tracking down whether it's a bug in perl or an error in my understanding of its behavior. [Most likely the latter, but after about four hours one begins to wonder....] Thanks ever so much. Joe Beckenbach -- Joe Beckenbach jerbil@csvax.caltech.edu VEGGIES FOREVER! Toto, kansasoseum nun est cognito. -- Farley