on Thu, 18 Apr 2002 18:07:38 GMT, Drieux wrote: > hence > > map {[ 'cascade', '~'.$_]} @sub_directories; > > as the last line of the sub should have returned a 'list' > back to the caller just as the > > sub foo { qw/ 1 2 3 4 5 6 7 8 9 / } ; > > would return a 'list' ???
Yes > > or should he have coerced it foist: > > @array = map {[ 'cascade', '~'.$_]} @sub_directories; > > @array ; # our default return > > } # end of this function > > ( ????? ) No, this is not necessary. Personally, however, I prefer an explicit 'return' statement, as in return map { ($_ => 1) }, @array; (The () are optional). -- felix -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]