Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: Rogue Null (ordinate 0) characters in text files

by almut (Canon)
on May 08, 2008 at 01:48 UTC ( [id://685372]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Rogue Null (ordinate 0) characters in text files
in thread Rogue Null (ordinate 0) characters in text files

Well, you're using /\.+/, not /\.*/  :)

my $s = "abcdefg"; my @c = split /\.*/, $s; print '/\.*/: ', join("-", @c), "\n"; my @d = split //, $s; print '//: ', join("-", @d), "\n"; __END__ /\.*/: a-b-c-d-e-f-g //: a-b-c-d-e-f-g

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-06-21 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.