|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: not able to get the output using split functionby NetWallah (Monsignor) |
| on Sep 01, 2012 at 22:09 UTC ( #991201=note: print w/ replies, xml ) | Need Help?? |
|
Your code: will pick up the FIRST argument passed-in. Your test probably looked something like: and it picked-up just the "i".
There are two possible fixes: 2. Programattically capture ALL passd arguments: If you notice, @ARGV already contains the same information as @words for this case, so split is unnecessary.
I hope life isn't a big joke, because I don't get it.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||