[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tonight's meeting




Steve:

Since you might not make it tonight, how about giving us all another
Perl regex lesson?  :-)

The following construction takes the second word in a string from
<STDIN> and makes it the entirety of the string. It works, but I only half
understand it.

$_ =~ s/^([^ ]+) +([^ ]+).*/$2/;

Please give us the low-down on this craziness, Steve!


-J

-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.