Keep It Simple, Stupid | |
PerlMonks |
Re^3: Temporary text files with File::Tempby ack (Deacon) |
on Feb 28, 2008 at 16:02 UTC ( [id://670918]=note: print w/replies, xml ) | Need Help?? |
jarich, you wrote:
"Alternately if there is a special layer I can pass to binmode itself to say "treat as text" so that Perl can do it's special text-file magic by translating \n to the appropriate thing; I'd love to hear about that."
I was recently investigating the use of the I/O layers and seem to recall that there may be a way to do what you asked about. But I'm by no means an expert on the topic so it isn't something I've got much experience with. But wouldn't that constitute exactly what you said you didn't want...special processing for each environment? And wouldn't that defeat your goal of keeping it simple for your students?
ack
Albuquerque, NM
In Section
Seekers of Perl Wisdom
|
|