[wellylug] Perl problem -- warning, I know nothing about Perl syntax ;-)

Enkidu enkidu at cliffp.com
Mon Mar 22 21:48:17 NZST 2004


On Mon, 22 Mar 2004 20:31:51 +1200, you wrote:

>Hi,
>
>This innocuous looking line of code:
>
>if ($fentry->{regexp}) { @toadd = grep { /$name/ } @$rpms } 
>
>is giving me this error:
>
>Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HERE / at ....
>
>What an earth does that mean?!  Is the  '<-- HERE in m/* <-- HERE /' a
>standard perl way of signifying an error?
>
What has $name got in it? Any special characters? I ask because /expr/
is shorthand for m/expr/ I believe. 

Cheers,

Cliff




More information about the wellylug mailing list