RE: Regex c code

2005-02-23 Thread Brandon Willis
"Var_name[ 0 ] =" and not "Func002"; > > Thanks, > > Jerry > > -Original Message- > From: Brandon Willis [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 22, 2005 9:30 PM > To: Jerry Preston > Cc: 'Perl Beginners' > Subject:

RE: Regex c code

2005-02-23 Thread Brandon Willis
As far as I can see you aren't missing anything. perl -e '$a="foo [ 0 ] = function(1,2,3,4)"; $a=~/(\w+)\(/; print $1' works great for me. =) But you might think about using this: perl -e '$a=" foo [ 0 ] = function (1,2,3,4)"; $a=~/\b(\w+)\b\s*?\(/; print $1' The zero width assertion \b and the

Re: using whence

2003-06-27 Thread Brandon Willis
`$cmd` or it identical twin qx($cmd) both shell out and actually do an sh -c. So if you are looking for something specifically in ksh you'll have to run ksh from within the qx(). |b On Thu, 2003-06-26 at 16:21, David Parker wrote: > Hi. I have a perl script that calls various programs. I would li