Comments (6)
That's probably intentional.
:)
On Mar 16, 2014 8:11 AM, "moregan" [email protected] wrote:
https://rt.cpan.org/Public/Bug/Display.html?id=36384
PPI 1.215/1.216_01:
perl -WE 'open( my $fh, ">", "contains_nul.pl"); print $fh "my $a; \0 my $b; print 1;";'
xxd -g1 contains_nul.pl
0000000: 6d 79 20 24 61 3b 20 00 20 6d 79 20 24 62 3b 20 my $a; . my $b;
0000010: 70 72 69 6e 74 20 31 3b print 1;perl contains_nul.pl
1ppidump contains_nul.pl
Could not parse code: Encountered unexpected character '0'Reply to this email directly or view it on GitHubhttps://github.com//issues/69
.
from ppi.
Are you saying that PPI should remain different from perl here? (This came up because the CPAN.pm distributed with 5.10.0 had a NUL in it.)
from ppi.
Interesting.
PPI should handle anything that perl can run legally, so carry on.
Adam
On Mar 20, 2014 8:13 PM, "moregan" [email protected] wrote:
Are you saying that PPI should remain different from perl here? (This came
up because the CPAN.pm distributed with 5.10.0 had a NUL in it.)Reply to this email directly or view it on GitHubhttps://github.com//issues/69#issuecomment-38245975
.
from ppi.
PPI throws the same error for the vertical tab character (ASCII 11), which 5.18 now counts as whitespace in \s
from ppi.
Will perl itself run code with the vertical tab?
Does anyone ever actually wrote anything using it?
On Mar 23, 2014 10:15 PM, "moregan" [email protected] wrote:
PPI throws the same error for the vertical tab character (ASCII 11), which
5.18 now counts as whitespace in \sReply to this email directly or view it on GitHubhttps://github.com//issues/69#issuecomment-38412973
.
from ppi.
Yes, perl will run code with VT where can be whitespace (tried 5.8.8 and 5.16.3). As of 5.18, VT is now included in \s, so at least in principle PPI should deal with it. In the 25% of CPAN that I have lying around for testing PPI with, ack finds zero VTs, which doesn't surprise me. There are a handful of CPAN modules that have NULs somewhere.
NUL, along with EOT and ESC, can appear in some places that whitespace can, but not others. I'd like to know the story there before doing anything with NUL.
from ppi.
Related Issues (20)
- provide delimiters for PPI::Token::QuoteLike::{Words,Regexp,Command}, PPI::Token::Quote::{Literal,Interpolate}
- dies with unicode bare key name HOT 1
- use signatures not supported by PPI HOT 1
- Lexical subroutine doesn't return correct name HOT 2
- Misparse bareword as label HOT 7
- Maybe bump minimum Perl version to 5.008?
- try/catch syntax misparsed
- Extending PPI HOT 2
- Parse DSL as a sub HOT 2
- The Keyword Question HOT 20
- Verify behaviour of BEGIN, UNITCHECK, CHECK, INIT and END
- TODO: tidy everything
- TODO: remove superfluous `#pod` lines
- TODO: verify INHERITANCE documentation for all classes
- TODO: auto-generate copyright, author, contributor notices (see strictures.pm)
- TODO: probably un-inline Inlined $self->__add_element(shift);
- TODO: create test cases for the constructs in Syntax::Construct
- Heredocs are stripped from stringified Document object HOT 1
- QuoteLike::Words->literal returns wrong results after contents change
- have the dependents test test all dependents
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ppi.