Question

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?

Was it helpful?

Solution

When you have those sorts of questions, start crawling back through the perl*delta documents. You can mostly skip the minor versions since those versions shouldn't introduce major features.

In this case, you'd find it in perl56delta.

OTHER TIPS

Looks like 5.6.0.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top