in reply to First word
$ perl -l use warnings; use strict; my $x = "hey dude what's up"; (my $y = $x) =~ s/(\w+).*/$1/; print $y; __END__ hey
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: First word
by Anonymous Monk on Apr 24, 2008 at 09:10 UTC | |
by toolic (Bishop) on Apr 24, 2008 at 13:32 UTC |