$filename"); At some point...">

When did file mode in Perl open become a separate argument?

Once you opened files in Perl, for example:

open(FH, ">$filename"); 

At some point, for many reasons, including some very sticky ones that contain file names with leading spaces, this syntax became available (and, immediately, preferred):

 open(FH, '>', $filename); 

In what version of Perl did we get this syntax with?

+6
perl changelog
source share
2 answers

When you have questions like this, start scanning through perl * delta documents. You can mostly skip minor versions, since these versions should not introduce basic functions.

In this case, you will find it in perl56delta .

+6
source share

It looks like 5.6.0 .

+11
source share

All Articles