Re: creating hash from scalar variable
- From: merlyn@xxxxxxxxxxxxxx (Randal L. Schwartz)
- Date: Mon, 30 Apr 2007 05:01:02 -0700
""Matthew" == "Matthew J Avitable" <mja@xxxxxxxxxxx> writes:
"Matthew> You could also invoke perl 5.8's ability to treat an in-memory string as a
"Matthew> file:
You can, but that's rapidly sliding into "obfuscation" territory. You already
have the data... why shove it out as a filehandle and back in line by line,
when all you need to do is split the data up by lines?
string-as-filehandle is mostly to work around legacy systems that want a
filehandle but you actually want the data in memory. Don't invent *new*
interfaces that *require* their use. Ugh.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxxxxxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
.
- References:
- creating hash from scalar variable
- From: Goksie
- Re: creating hash from scalar variable
- From: Rodrick Brown
- Re: creating hash from scalar variable
- From: Matthew J. Avitable
- creating hash from scalar variable
- Prev by Date: Re: Encryption
- Next by Date: Re: creating hash from scalar variable
- Previous by thread: Re: creating hash from scalar variable
- Next by thread: Re: creating hash from scalar variable
- Index(es):