hotshot has asked for the wisdom of the Perl Monks concerning the following question:
does anyone have a short way to return from this array two strings?: one is the names without the '@' (separated by commas), and the second is the names with the '@', but after we cut the '@' from them.@arr = (test1, @test2, @test3, test4, test5)
Thanks$str1 = 'test1,test4,test5'; $str2 = 'test2,test3';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: searching in array
by kwoff (Friar) on Dec 10, 2001 at 21:52 UTC | |
|
Re: searching in array
by belg4mit (Prior) on Dec 10, 2001 at 21:47 UTC | |
|
Re: searching in array
by gbarr (Monk) on Dec 10, 2001 at 21:50 UTC | |
|
Re: searching in array
by maverick (Curate) on Dec 10, 2001 at 21:47 UTC |