You know how people keep asking you to do the same thing ? And they ask again and again and again? And you never quite do exactly what they're asking? And even when the problem was solved two days ago, you still can't see it? The two things are connected Now, can you or can you not post 20 lines of code that runs and reproduces the problem (self-contained bug report)?

I don't know how to answer you. I ran the little code blocks that were posted and they ran fine with no error.

Please explain how: And even when the problem was solved two days ago, you still can't see it?

Tell me again and I will implement "the change" required.

So a made a little pair of units and the variable is passed.

#!/usr/bin/perl use strict; use warnings; use manageusers_2 qw($LoggedOn_user_id); print "$LoggedOn_user_id\n";

And

#!/usr/bin/perl use warnings; use strict; package manageusers_2; BEGIN { use vars qw($VERSION @ISA @EXPORT); use DBI; # $ENV{DBI_TRACE}=1; # $ENV{PERL_DBI_DEBUG}=1; require Exporter; @ISA = qw(Exporter); # exported functions our @EXPORT_OK = qw($LoggedOn_user_id); $VERSION = '0.0.1'; } our $LoggedOn_user_id=428; 1;

I made sure the aparameters in my real program were the same

It failed

$userid_1 = $manageusers::LoggedON_user_id; warn("userid : '$userid_1' ");

And the result is:

update_tables-development.cgi: Use of uninitialized value in concatena +tion (.) or string at update_tables-development.cgi line 66. userid : '' at update_tables-development.cgi line 66. [Sat Apr 8 13:55:38 2017] update_tables-development.cgi: userid : '' + at update_tables-development.cgi line 66.

In reply to Re^13: global var by tultalk
in thread global var by tultalk

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.