DavidSzczesniak
1/10/2018 - 12:17 PM

The three argument 'open'

The advantage of this form is that Perl never confuses the mode(2nd argument), with some part of the filename(3rd argument), which is a plus for security.

# Here are a few examples:
open CONFIG, '<', 'dino';
open BEDROCK, '>', $file_name;
open LOG, '>>', $logfile_namel;