Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. embonha

    How to get variables of main program in a module?

    Using your example... use my; $t="hello"; ---my.pm---- ... print $main::t; ...
  2. embonha

    PM Using Variables From Main Script

    I had originally done exactly what you said in your first example. However, the variables being passed ended up being insane. I ended up with TOO MANY variables to really manage and still be able to understand the code. The PM I am trying to write is for an application and thus the need for...
  3. embonha

    PM Using Variables From Main Script

    Ok, I have a main script and a module I wrote, I will simplify to see if you can help. <---------- MAIN SCRIPT ----------> !/usr/bin/perl use strict; use myPM; my $var = 'Hello World'; say_hi(); <---------- myPM SCRIPT ----------> package myPM; use strict; require Exporter; our @ISA = qw...

Part and Inventory Search

Back
Top