Once upon a time, you opened files in Perl like so:
open(FH, ">$filename");
At some point, for many good reasons including some very sticky ones involving filenames with leading spaces, this syntax became available (and, immediately, preferred):
open(FH, '>', $filename);
What version of Perl did we get that syntax with?
open
operation, though, that's theopen
operation plus a form of failure handling that may or may not be appropriate to context. I only wanted to talk aboutopen
. – Scurlockmy $fh
syntax, then realized (as related research had turned up) that that syntax actually became valid at the same time as the three-argumentopen
. So mucking with that would just confuse the issue. – Scurlockcorelist
(search.cpan.org/dist/Module-CoreList) invaluable for telling me what version of Perl contains a given module. E.g.corelist /File::Spec/
from the command line. Very handy when you're trying to figure out which additional modules you need to install on some other computer. – Appearance