Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

(MeowChow) Re: white space substitution

by MeowChow (Vicar)
on Jun 06, 2002 at 11:16 UTC ( [id://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"; } }
               s aamecha.s a..a\u$&owag.print