"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:
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
`$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