Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by PerlPeer (Novice)
on Sep 20, 2012 at 09:22 UTC ( #994615=note: print w/ replies, xml ) Need Help??


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

Thank you too.

I figured that somehow I got a numerical value of the number of tabs, since when I used:

 s/\s+/\t/

(thus without the "g") the number that was returned was 1 (instead of 2). I had no idea however, how this was caused.

I frequently fail to recognize this kind of "equivalents". I hope this is just being new to perl.......


Comment on Re^2: Substituting white spaces with a tab changes my string into numeric value
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2014-07-30 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (241 votes), past polls