468,316 Members | 2,039 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,316 developers. It's quick & easy.

how to use variables or packages of one program into another

hi,
How can we use variables or packages of one program into another.
Say my first program name is First.pl, where i write the code like this:
Expand|Select|Wrap|Line Numbers
  1.          use DBI;
  2.          use Apache::Request;
  3.         ....................................
  4.         ....................................
  5.  
  6.         my $a='hai';
  7.         print "$a \n";
  8.  
Now i want to use the same packages DBI,Apache::Request.
Also i would like to have the value of the variable in my second
program. How is it possible? Can i write something like
use folder::First; and i use the packages in my second program?


Cheers,
pavan
Jul 26 '08 #1
0 758

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Patrick Robinson | last post: by
2 posts views Thread by Kent Lewandowski | last post: by
3 posts views Thread by Andras Tantos | last post: by
18 posts views Thread by MajorSetback | last post: by
5 posts views Thread by Sandman | last post: by
3 posts views Thread by Doug Robinson | last post: by
5 posts views Thread by John Ladasky | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.