Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: remove spaces after join operation

by mtmcc (Hermit)
on Jul 26, 2013 at 11:15 UTC ( #1046484=note: print w/ replies, xml ) Need Help??


in reply to remove spaces after join operation

Don't put a space between the quotes in the join statement:

 join('', @first_sentence);

If you want spaces at some points but not at others, you'll either have to alter the elements going into the array, or modify your sentence after the join with spaces.


Comment on Re: remove spaces after join operation
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-12-29 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (186 votes), past polls