Mailing List Archive

Support open source code!


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

Re: REGEXP in perl questiion



On Wed, May 23, 2001 at 09:24:25AM -0000, Jean-Christian Imbeault wrote:
> Thanks! Your second option worked, but the first one did not.
> 
> >From your first email I tried:
> 
> if ( $_ =~ /^Subject: /) {
>   if ($_ =~ "Cron") {
>     #Extract the name of the prog that cron lauched
		#try that instead:
     $PROGNAME =~ s/.*\/([^\s]+).*/$1/;
>     print "The program called by cron was $PROGNAME\n";
>     #If this cron job is expected remove it from the list
>   }
> }
> 
> But it just printed out blanks.
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> -----------------------------------------------------------------------
> Next Technical Meeting:  Sat, May 12 13:30- 
> Next Nomikai Meeting:    Fri, June (TBA) 19:30- Tengu Tokyo Eki Mae
> -----------------------------------------------------------------------
> more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links