perl refactor: use modern semantics of 'open'
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 28 Mar 2012 22:31:47 +0000 (00:31 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 28 Mar 2012 23:05:45 +0000 (01:05 +0200)
commit2d671e11c8574d86c47211cc1bfe680ec8d91957
tree9e50c59eda0a4421e48591450d05d4b1d23af40b
parent84bf694bcba198d700a3214a0f1be7e24a6c8755
perl refactor: use modern semantics of 'open'

* lib/Automake/XFile.pm: Update comments and POD documentation to
suggest a more idiomatic/modern usage.
(open): Be more robust in detecting whether the created file handle
is being opened for writing.
* lib/Automake/FileUtils.pm (update_file, contents): Call the
'Automake::XFile' and 'File::IO' constructors with two arguments
rather than one; this change obsoletes ...
(open_quote): ... this subroutine, which has thus been removed.
(@EXPORT): Drop '&open_quote'.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/Automake/FileUtils.pm
lib/Automake/XFile.pm