When using the cgi module
why can't I do this
@out = grep /param(what)/, @test;
I have do to do
$what = param(what);
@out = grep /$what/, @test;
Probably something simple and if the proper way is the second way that's fine to, but I need some explaining so I understand why.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;
why can't I do this
@out = grep /param(what)/, @test;
I have do to do
$what = param(what);
@out = grep /$what/, @test;
Probably something simple and if the proper way is the second way that's fine to, but I need some explaining so I understand why.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
Travis - Those Who Say It Cannot Be Done Are Usually Interrupted by Someone Else Doing It; Give the wrong symptoms, get the wrong solutions;