Re: OT: a problem about text manipulation

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

 



On Tue, 2006-10-31 at 07:03 -0800, Benjamin Franz wrote:

> #!/usr/bin/perl -na
> 
> foreach my $i (@F) { ($i =~ m/^[0-9]+$/) ? $a = $i : print "$a $i\n" }
> 
> :))) 

	Heh, looks good to me.  ;-)

-- 
Boring Home Page - http://www.webtrek.com/joe
See my blog, sumo game ranks and other interesting junk


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux