Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Add space in long string

by hdb (Monsignor)
on May 28, 2013 at 13:30 UTC ( [id://1035600]=note: print w/replies, xml ) Need Help??


in reply to Add space in long string

Another one starting from right hand side:

my $bin = '101001100010100001'; $bin = reverse join " ", (reverse $bin) =~ /(.{1,4})/g; print $bin;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1035600]
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: (7)
As of 2024-04-25 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found