Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: 3 questions... 2 about newlines, and one on how to be NICE

by Mago (Parson)
on Jan 10, 2005 at 20:43 UTC ( #421079=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        while (<>) {
        chomp;    # avoid \n on last field
        @array = split(/:/);
        # ...
        }
    
  2. or download this
        chomp($cwd = `pwd`);
        chomp($answer = <STDIN>);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2017-06-27 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (604 votes). Check out past polls.