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

Re^3: giving spaces

by BillKSmith (Chaplain)
on Jul 17, 2013 at 14:09 UTC ( #1044817=note: print w/ replies, xml ) Need Help??


in reply to Re^2: giving spaces
in thread giving spaces

If you use use strict; use warnings; you will probably find an error in this statement that has nothing to do with spaces. I suspect that you intend $i to be a subscript. If so,

print " $arrayA[$i] $arrayB[$i] ";
Note: \s is special character class for regular expressions. It does not have the same meaning in a string. Just use space characters.
Bill


Comment on Re^3: giving spaces
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-09-19 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (132 votes), past polls