On Sep 12, [EMAIL PROTECTED] said:

I have tried this and I am still getting a similiar error.
Here is my perl-cgi code:

WHICH line is the uninitialized value warning coming from?

my $which_import = $q->param('action') || '';

foreach my $scalar (@imports)
{
     if ($which_import eq 'Import H9940')
     {
            while (<SAM>)
            {
                 if (/(?ig)$scalar/)

You can't put 'g' inside the (?...) construct of a regex. That should be written as

  /(?i)$scalar/g

or just

  /$scalar/ig

But I'm not even sure the /g is necessary...

--
Jeff "japhy" Pinyan        %  How can we ever be the sold short or
RPI Acacia Brother #734    %  the cheated, we who for every service
http://www.perlmonks.org/  %  have long ago been overpaid?
http://princeton.pm.org/   %    -- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to