Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 taking refuge in the Monastery: (6)
As of 2015-07-04 02:34 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 (57 votes), past polls