Re: Question on transliteration

2003-10-29 Thread Jenda Krynicky
From: Stefan Lidman <[EMAIL PROTECTED]> > >Can someone translate into English: > > > >($filename) = $file =~ m!([^/]*)$!; > > > > > >Why is $filename in parens? > > The parens put $filename in list context so that it contains whatever > is after the last '/'. This sentence may be a little mislead

Re: Question on transliteration

2003-10-23 Thread Stefan Lidman
>Can someone translate into English: > >($filename) = $file =~ m!([^/]*)$!; > > >Why is $filename in parens? The parens put $filename in list context so that it contains whatever is after the last '/'. In scalar context it contains the number of times the regexp matched. /Stefan -- To unsubscrib