perldoc perlre
...
\u uppercase next char (think vi)
...
User Profile
Collapse
-
Code:my $t="hello hello word"; $t=~s/(\b)(\w)/$1\u$2/g; print $t;
Leave a comment:
-
Sorry, but simplest solution is:
Code:use strict; use warnings; my $file = 'text.txt'; open FILE, $file or die "can't open $file"; my @text = <FILE>; close FILE; my ( @ids ) = ( join '', @text ) =~ /hop (\d+)[^\d]+?9227493/g; printf "%s\n", ( join "\n", @ids );
Leave a comment:
No activity results to display
Show More
Leave a comment: