james28909 has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks, I am back, and come with a question regarding opening a file with undef as the filename.
open (my $fh, '+>', undef);
What exactly is this doing? I ask this because I was able to read and write to $fh as if it were a real file. Is it a temp file somewhere on the harddrive? Or is it in memory
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Open with 'undef' filename.
by BrowserUk (Patriarch) on Nov 07, 2016 at 00:14 UTC | |
by james28909 (Deacon) on Nov 07, 2016 at 00:23 UTC |