On Thu, May 05, 2005 at 08:39:52AM +0300, Gaal Yahas wrote: : How do I open a file named "-"?
Um, depending on what you mean, and whether we continue to support
the '=' pseudofile, maybe:
$fh = io("-");
or
$fh = open "-";
or
$fh = $name eq '-' ?? $*IN :: open $name;
: How do I open stdout (and the other standard handles)?
Maybe something like:
$fh = open "file", :w:c:usefd(1);
or
$*OUT.reopen("file",:w:c);
or
reopen $*OUT: "file", :w:c;
give or take a few options.
Larry
