a perl question
Avi Greenbury
avismailinglistaccount at googlemail.com
Tue Jan 4 17:22:25 UTC 2011
S Mathias wrote:
> how can i sovle this question? what is SOMEPERLMAGIC? are there any
> perl gurus, that have a little spare time?
>
> Thank you! :\
>
This looks an awful lot like a homework (I can't imagine how else you
would come across such a problem), so here's a quick pointer which
you'll be able to use if you've covered much in the way of the basics of
Perl[0]:
if ($_ =~ /[XYZ](.*)[/XYZ]/){
$importantStuff = $importatStuff.$1;
}
Remember, Perl is often little more than a glorified regular
expression engine! :)
--
Avi.
[0] I note that even if you haven't, from some of the other responses
you should be able to piece together a script.
More information about the ubuntu-users
mailing list