This is the revision history for open file in <discord.gg:#412831877242683403>
factoid_id | subject | copula | predicate | author | namespace |
---|---|---|---|---|---|
7766 | open file | is | please don't write open FILE, ...; - since 5.6 you can do open my $fh, "<", $filename or die ..$!..; to use a lexical rather than a global name, which is a much better way to do it (and don't forget the or die at the end either!) And make sure you use three-args open instead of two args. | f00li5h | <*:##NULL> |
6138 | open file | is | please don't write open FILE, ...; - since 5.6 you can do open my $fh, "<", $filename or die...; to use a lexical rather than a global name, which is a much better way to do it (and don't forget the or die at the end either!) And make sure you use three-args open instead of two args. | rindolf | <*:##NULL> |
6137 | open file | is | see open FILE | mst | <*:##NULL> |
6136 | open file | is | please don't write open FILE, ...; - since 5.6 you can do open my $fh, "<", $filename or die...; to use a lexical rather than a global name, which is a much better way to do it (and don't forget the or die at the end either!) And make sure you use three-args open instead of two args. | rindolf | <*:##NULL> |
5720 | open file | is | please don't write open FILE, ...; - since 5.6 you can do open my $fh, ...; to use a lexical rather than a global name, which is a much better way to do it (and don't forget the or die at the end either!) | perlbot | <*:##NULL> |