Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: Another newb question

by dasgar (Deacon)
on Aug 09, 2012 at 03:40 UTC ( #986410=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Another newb question
in thread Another newb question

Since you're reading in from STDIN, you might need to use chomp on the last element of your array.

I haven't tested it, but you might be able to modify your foreach loop to something like below, which uses chomp on each element.

foreach (@userin) { chomp; printf "%20s", $_ ; }


Comment on Re^5: Another newb question
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2014-09-21 00:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (165 votes), past polls