Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: giving spaces

by BillKSmith (Priest)
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2016-09-26 07:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (478 votes). Check out past polls.