develooper Front page | perl.perl6.language | Postings from May 2007

Re: Current file name used by $*ARGS filehandle

From:
Larry Wall
Date:
May 1, 2007 11:02
Subject:
Re: Current file name used by $*ARGS filehandle
Message ID:
20070501174030.GA7344@wall.org
On Tue, May 01, 2007 at 10:04:50AM -0500, brian d foy wrote:
: Is there going to be a Perl 6 equivalent to $ARGV (the current filename
: for the ARGV filehandle)?

Hmm, well, we did away with unsigiled filehandles, and renamed @ARGV
to @*ARGS, so $*ARGS is presumably the magical filehandle, which means
it can't really serve as the filename at the same time.  So assuming
that any filehandle knows the name of its file (if available), it'd
probably be available via a method like $ARGS.name or some such.

Larry



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About