Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: It's all getting messy - remove whitespace

by RichardK (Vicar)
on Jun 15, 2014 at 11:12 UTC ( #1089935=note: print w/ replies, xml ) Need Help??


in reply to It's all getting messy - remove whitespace

Yes perl does that. There's a difference between

print "@array\n"

and

print @array,"\n";

Try it and see ;)

As you're trying to extract part of a string, you might find it easier to use substr, rather than convert to an array and back.

so something like

my $seq = substr( $column, $start, $length);


Comment on Re: It's all getting messy - remove whitespace
Select or Download Code
Replies are listed 'Best First'.
Re^2: It's all getting messy - remove whitespace
by lecb (Acolyte) on Jun 15, 2014 at 11:41 UTC

    RichardK, you hero! I have use a substring and it works like a dream! You've made a young lady very, very happy.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2015-07-31 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls