Re: Splicing sub input into a regular expression

2003-05-31 Thread Ken Tozier
That did the trick. Thanks, Ken On Friday, May 30, 2003, at 07:19 PM, James Edward Gray II wrote: On Friday, May 30, 2003, at 06:10 PM, Ken Tozier wrote: sub GetPhotoInfo($inPhotoPath) This should be: sub GetPhotoInfo { open(PROPS, 'egrep -a \']+)>[^<]*\' $inPhotoPath | All sub routine par

Re: Splicing sub input into a regular expression

2003-05-31 Thread James Edward Gray II
On Friday, May 30, 2003, at 06:10 PM, Ken Tozier wrote: sub GetPhotoInfo($inPhotoPath) This should be: sub GetPhotoInfo { open(PROPS, 'egrep -a \']+)>[^<]*\' $inPhotoPath | All sub routine parameters are passed in the @_ variable. To get the first of those $_[0], should do the trick. So re

Splicing sub input into a regular expression

2003-05-31 Thread Ken Tozier
I just put the finishing touches on some Perl code that reads info from Photoshop jpeg files but when trying to package it up inside a subroutine, I'm having trouble using the input variable. For example in the naked code I wrote: open(PROPS, 'egrep -a \']+)>[^<]*\' "file.jpg" | '); but when t