Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^4: what would you like to see in perl5.12?

by JavaFan (Canon)
on Aug 07, 2008 at 16:26 UTC ( [id://702928]=note: print w/replies, xml ) Need Help??


in reply to Re^3: what would you like to see in perl5.12?
in thread what would you like to see in perl5.12?

printf "%{" is legal, and prints %{. With warnings on, it does issue a warning, but it's (currently) not illegal.

But your initial proposal talked about interpolating in strings, and in strings, "%{hash}" is currently fine. No warnings. I'd be more worried about regular strings 'breaking' than any (s)printf formats.

Replies are listed 'Best First'.
Re^5: what would you like to see in perl5.12?
by BrowserUk (Patriarch) on Aug 07, 2008 at 17:48 UTC

    As far as I know, none of the new extensions in 5.10 are enabled unless a switch or pragma is used, so old code can continue untouched.

    The point about %{} is that it is a fairly natural extension of existing mechanisms that doesn't conflict with existing uses. That there may exist by happenstance some code that would need to be changed in minor ways before it would run under the auspices of the feature pragma is not, (should not be), a barrier to the addition of new features.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://702928]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-25 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found