Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Substituting white spaces with a tab changes my string into numeric value

by remiah (Hermit)
on Sep 20, 2012 at 02:30 UTC ( #994576=note: print w/replies, xml ) Need Help??


in reply to Substituting white spaces with a tab changes my string into numeric value

change

$line = s/\s+/\t/g;
to
$line =~ s/\s+/\t/g;

  • Comment on Re: Substituting white spaces with a tab changes my string into numeric value

Replies are listed 'Best First'.
Re^2: Substituting white spaces with a tab changes my string into numeric value
by PerlPeer (Novice) on Sep 20, 2012 at 02:33 UTC

    Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://994576]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-01-21 09:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (183 votes). Check out past polls.