diff options
author | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-22 14:35:46 +0000 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2001-03-22 14:35:46 +0000 |
commit | e620cd7232b242c1500abd8a6a5b86efdf1c5c2b (patch) | |
tree | 62b27a249ce39c519adcc3c671e456ae3c92178a /emacs | |
parent | 1f852d0d1f9745d51afb4cb836d527bbbac0c64e (diff) | |
download | perl-e620cd7232b242c1500abd8a6a5b86efdf1c5c2b.tar.gz |
Give a meaning to '&' in n-arg open case:
open($fh,"<&",$scalar);
$scalar can be:
- an integer which does "fdopen"
open($fh,"<&",2); # like open($fh,"<&2")
- something that will yield a file handle via sv_2io()
useful for dup'ing anonymous handles.
e.g.:
open(my $fh,"<&",\*STDIN);
open(my $dup,"<&",$fh);
p4raw-id: //depot/perlio@9298
Diffstat (limited to 'emacs')
0 files changed, 0 insertions, 0 deletions