Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: giving spaces

by BillKSmith (Vicar)
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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2017-07-23 10:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (346 votes). Check out past polls.