4 Arg open ...

Anyone else having dreams of a four arg open?

open FILEHANDLE,MODE,REFERENCE,GIT COMMIT MESSAGE

5 Comments

Mm, not at all :) But please elaborate.

Actually, you should be able to write a :git PerlIO layer so that you could do something like

open my $fh, '>:git', $filename, 'commit message' or die "Whatever"

Well, there already is a four argument form of open(). There's five, six, ..., form as well. :)

Why not a two-argument form of close()? :)

Leave a comment

About Robert Blackwell

user-pic I am a Pittsburgh Perl Parent.