On Wed, 13 Sep 2000 22:49:14 -0700, Glenn Linderman wrote: >So who needs a special format type? Just need a string. It becomes a >format when you use it as such... So just > > my $frm = <<'.' >@<<<<<<<<<<<<<: @<<<<<<<< >$name, $ssn >. I, for one, can see two problems with this. And I'm not an expert. Both are related to the variables. 1) With a string, there can be no compile-time check on the variables. If one isn't found, you can, at best, get a runtime error. 2) What about lexical variables? Suppose that $name is a lexcial variable. If this format string is interpreted in another module, there's no way that that module can get a grasp on the lexical $name. -- Bart.
- RFC 181 (v1) Formats out of core / New format syntax Perl6 RFC Librarian
- Re: RFC 181 (v1) Formats out of core / New format... Philip Newton
- Re: RFC 181 (v1) Formats out of core / New format... Johan Vromans
- Re: RFC 181 (v1) Formats out of core / New fo... Nathan Wiger
- Re: RFC 181 (v1) Formats out of core / New fo... David L. Nicol
- Re: RFC 181 (v1) Formats out of core / New format... H . Merijn Brand
- Re: RFC 181 (v1) Formats out of core / New fo... Nathan Wiger
- Re: RFC 181 (v1) Formats out of core / New format... Glenn Linderman
- Re: RFC 181 (v1) Formats out of core / New fo... Bart Lateur
- Re: RFC 181 (v1) Formats out of core / Ne... Glenn Linderman
- Re: RFC 181 (v1) Formats out of core ... Bart Lateur
- Re: RFC 181 (v1) Formats out of core ... H . Merijn Brand
- Re: RFC 181 (v1) Formats out of ... Bart Lateur
- Re: RFC 181 (v1) Formats out... H . Merijn Brand
- Re: RFC 181 (v1) Formats... Tom Christiansen
- Re: RFC 181 (v1) Formats... H . Merijn Brand
- Re: RFC 181 (v1) Formats out of core / New format... H . Merijn Brand