You say to avoid using $^O, but then recommend using File::Spec, which uses $^O to do what you said not to do. It's not a bad technique. At some point you do have to get down to brass tacks and interact with the operating system, or tell Perl how to behave for the particular operating system.
In reply to Re: RFC: A Primer on Writing Portable Perl Programs
by brian_d_foy
in thread RFC: A Primer on Writing Portable Perl Programs
by yumpy
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |