Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 imbibing at the Monastery: (10)
As of 2014-09-17 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (74 votes), past polls