Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

(MeowChow) Re: white space substitution

by MeowChow (Vicar)
on Jun 06, 2002 at 11:16 UTC ( #172146=note: print w/replies, xml ) Need Help??


in reply to white space substitution

A few problems...
#!/usr/bin/perl -w use strict; while (my ($name, $passwd, $gid, $members) = getgrent) { if ($name eq "steel"){ $members =~ s/\s/\n/g; print "$members\n"; } }
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://172146]
help
Chatterbox?
[Discipulus]: it's friday all over the globe!
[choroba]: yay!

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2017-02-24 08:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (353 votes). Check out past polls.