Geeze, thank you! I must have looked over that about 10 times, character by character, and did not see that. Thanks for spotting that for me. :o)

Strange that all I did was ask a question, and people downvoted it ;o) Wow, I guess it does not pay to ask questions ;o)

Anyways, I have another...

With regards the part that says "redefined", it did not do that until I added this:
BEGIN { if (defined($in{bus}) && $in{bus} =~ /frhb$/i) { use MyModule::PckgName; } elsif (defined($in{bus}) && $in{bus} =~ /frhb2$/i) { use MyModule2::PckgName; } elsif (defined($in{bus}) && $in{bus} =~ /frhb3$/i) { use MyModule3::PckgName; } elsif (defined($in{bus}) && $in{bus} =~ /frhb4$/i) { use MyModule4::PckgName; } elsif (defined($in{bus}) && $in{bus} =~ /frhb5$/i) { use MyModule5::PckgName; } elsif (defined($in{bus}) && $in{bus} =~ /frhb6$/i) { use MyModule6::PckgName; } elsif (defined($in{bus}) && $in{bus} =~ /frhb7$/i) { use MyModule7::PckgName; } elsif (defined($in{bus}) && $in{bus} =~ /frhb8$/i) { use MyModule8::PckgName; } }

Of course as usual for security, I changed the module names, since this is on a shared server. I also push the location to @inc at the top of the script.

Why would it do that if it is actually NOT executing the "use" statement, since only one can be true?

The actual modules are identical, like I said earlier, they are only different with regards to the username and password for MySQL access. Each different module is for a different site, all on the same server.

I'd appreciate any thoughts on that.

thx,
Richard

In reply to Re: Re: Error in Syntax... by powerhouse
in thread Error in Syntax... by powerhouse

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.