Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: STDIN help for a new Perl coder

by gwadej (Chaplain)
on Jul 15, 2009 at 16:54 UTC ( #780399=note: print w/ replies, xml ) Need Help??


in reply to STDIN help for a new Perl coder

Look at chomp. That should give you a clue.

When you have a question about the value of a variable. It's a good idea to print it with delimiters around the value. Not all characters are visible.

print "[$dir]\n";
G. Wade


Comment on Re: STDIN help for a new Perl coder
Download Code
Replies are listed 'Best First'.
Re^2: STDIN help for a new Perl coder
by perlJourney (Initiate) on Jul 15, 2009 at 18:03 UTC

    Thank you, I will look at the delimiters as well to try that out.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2015-07-31 02:21 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 (274 votes), past polls