Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Reading a variable as a file

by thezip (Vicar)
on Nov 23, 2007 at 21:22 UTC ( #652666=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Reading a variable as a file
in thread Reading a variable as a file

Yes, you're absolutely right.

But to me, this problem seems to fall somewhere in the middle regarding how it should be handled... On the one hand, a scalar containing the entire file would make it easier to perform the numerous regex substitutions, while on the other hand, an array would make it easier to to shift off the required items.

I think the point I was trying to make was that an "array" (instead of reading the entire file into a scalar) might be another approach to this problem.

Update: After re-reading the OP's question, I now realize that I pretty much ignored the basic spec for the problem.

Your wish is my commandline.


Comment on Re^3: Reading a variable as a file

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://652666]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2014-09-20 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (157 votes), past polls