in reply to Re: Open Filehandle once (updated)
in thread Open Filehandle once

regarding File::Slurp alternatives, I like Path::Tiny, which has an append method, too.

syntax would be e.g.

use Path::Tiny (); # otherwise 'path' will be imported ... Path::Tiny::path($filePath)->append(map { "$_\n" } 'chkconfig smb: OK' +, @smb))