Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: BUG: code blocks don't retain literal formatting -- could they?

by choroba (Cardinal)
on Sep 16, 2016 at 07:55 UTC ( [id://1171918]=note: print w/replies, xml ) Need Help??


in reply to Re^3: BUG: code blocks don't retain literal formatting -- could they?
in thread BUG: code blocks don't retain literal formatting -- could they?

> Quoted strings, by default, are treated a streams of 8 bit bytes. with use feature 'unicode_strings'; in effect, you can include UTF8 encoded characters in quoted strings.

That's not exactly how it works. Under use utf8;, quoted strings can already contain unicode characters:

#!/usr/bin/perl use warnings; use strict; use feature qw{ say }; use utf8; my $string = 'Pérl Mönx'; say length $string; # 9, not 11

See The "Unicode Bug" for details.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found