|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: Re: newbie hasherby prodevel (Scribe) |
| on Nov 20, 2003 at 00:45 UTC ( [id://308513]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
By no means am I discounting the other methods, but I really like this one-liner due to my haphazzard knowledge of regex: %hostlist = <DATA> =~ /^(\w+)+\s(.*)/gm; This is exactly what I was looking for even though I was no where near explicit about what I wanted. I'm already applying this method to a few more scripts. The map was cool too. I am somewhat curious as to the extensive use of Data::Dumper instead of print-ing %hash? Thanks all!
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||