Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Should chomping a constant always raise an error?

by BigLug (Chaplain)
on Mar 11, 2005 at 03:20 UTC ( #438519=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub modify {
       chomp( $_[0] );
    ...
    modify($f);
    print $f;
    #fred
    
  2. or download this
    sub modify2 {
       # Create a copy of the input
    ...
    modify($f);
    print $f;
    #fred\n
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2022-05-23 11:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?