in reply to Array Fun
Nifty stuff!
Are you up for a challenge? Try replacing your first while loop with
What's going on there? Have a look at split and grep and see if you can work it out. Get back to us if you need a pointer.push @list, grep{/\S/} split '' while <>;
Happy Perling!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Array Fun
by phantom20x (Acolyte) on Apr 06, 2007 at 17:50 UTC | |
|
Re^2: Array Fun
by xiaoyafeng (Deacon) on Apr 19, 2007 at 03:57 UTC |