Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Replacing Whitespace with Underscore

by pryrt (Monsignor)
on Apr 09, 2018 at 16:19 UTC ( #1212597=note: print w/replies, xml ) Need Help??


in reply to Replacing Whitespace with Underscore

If that is your complete code, you are missing any output statements. You have edited the variable $line, which edits the string in memory... but then you do nothing with it. Given that you've chomped the line, I recommend something like print "$line\n"; at the end of your foreach loop

Replies are listed 'Best First'.
Re^2: Replacing Whitespace with Underscore
by CPTQuesoXI (Novice) on Apr 09, 2018 at 16:47 UTC

    I'm angry with myself for forgetting that. That ended up given me exactly what I needed. Thank you!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1212597]
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 2020-10-20 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?