On 31 Aug 2000, Perl6 RFC Librarian wrote:
>my format $FILE_FORMAT =
> @<: @
> $name, $ssn
> .
>
> Then this is even less different and scary. Get rid of that C and
> it's Perl 5.
s/that C/that C and the dollar sign/;
Cheers,
Philip
--
Philip Newton <[EMAIL PROTECTED]
> =head1 ABSTRACT
>
> There needs to be a way for an object class to define C format
> specifiers for use in formatting objects into strings with C and
> C.
I find myself agreeing with your sentiment, but the approach in this RFC
is not sufficiently general. Why only provide hooks for printf, n
Perl6 RFC Librarian <[EMAIL PROTECTED]> writes:
> Formats out of core / New format syntax
Good work! This RFC opens the possibility to normalize (e.g. make the
syntax no longer something exceptional) the formats.
>my format $FILE_FORMAT = q(
> @<: @
> $name, $ssn
> );
Johan Vromans wrote:
>
> Good work!
Thanks. :-)
> Is there any reason left to maintain formats as something internally
> special?
Well, as you note in your implementation suggestions, it would be nice
if Perl compiled the format the first time around. Along with the
implicit constructors sugge
Hildo Biersma wrote:
>
> > =head1 ABSTRACT
> >
> > There needs to be a way for an object class to define C format
> > specifiers for use in formatting objects into strings with C and
> > C.
>
> I find myself agreeing with your sentiment, but the approach in this RFC
> is not sufficiently general
Tom Christiansen wrote:
> >=item Complex filehandle references
>
> >my %filesystem;
> >my $filename = '/etc/shells';
> >open $filesystem{$filename}, $filename
> >or die "can't open $filename: $!";
> >print <$filesystem{$filename}>;
> >__END__
>
> >GLOB{0xa042284}
>Is some technical reason that this can't be done in perl 5? I hate
>having to add another pair of braces just to reassure perl that I didn't
>forget a comma:
>print {$fh{$name}} "data\n";
Indirect objects are very limited in what they can be.
--tom
Tom Christiansen wrote:
>
> >Is some technical reason that this can't be done in perl 5? I hate
> >having to add another pair of braces just to reassure perl that I didn't
> >forget a comma:
>
> >print {$fh{$name}} "data\n";
>
> Indirect objects are very limited in what they can be.
Curre
arrays-of-scalars
Reply-To: [EMAIL PROTECTED]
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Standard support for opening i/o handles on scalars and
arrays-of-scalars
=head1 VERSION
Maintainer: Eryq (Erik Dorfman) <[EMAIL PROTECTED]>
Date: 23 Aug 2