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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by rubis

  1. rubis

    Value of array in a package

    I try to make it OOP. What I want to do is I want to create an array of objects (@x in main) from "Package.pm". Each object has its own array which has different values (variables of objects). My problem is when I create an array (@a in the code above) in Package.pm but everytime that...
  2. rubis

    Value of array in a package

    Hi all, I have my own package which has one array as a global variable. In my main pgm, I use a &quot;for&quot; loop to create objects. package.pm our @array; sub new { my ($self, $a); push (@array, $a); } main.pl for ($i=0; $i<=3; $i++) { $x[$i] = package->new($i); } print @x...
  3. rubis

    Search for one element in an array

    thxs.. :D
  4. rubis

    Search for one element in an array

    Hi all, Is there any function/a method to check if a particular value is in an array apart from using &quot;foreach&quot; to check it one by one?? Thanks,
  5. rubis

    Share &quot;constant&quot; among many modules

    I had this problem before so it might be useful for someone package Global; use strict; require Exporter; use vars qw(@ISA @EXPORT); @ISA = qw(Exporter); @EXPORT = qw(A B); use constant A => &quot;A&quot;; use constant B => &quot;B&quot;; 1; within the caller one use...
  6. rubis

    How to share &quot;constant&quot; among many modules

    To Justice41... yes. Many modules use the same constant so I don't want to declare each constant seperately in each module as it is not a good idea to modify it later on. For the config file, u mean I should read the value from the file and then keep it in the constant variable?? Is there a...
  7. rubis

    How to share &quot;constant&quot; among many modules

    There is only the method of how to share the variable but what I want to share is &quot;constant&quot;.. any suggestion pls??
  8. rubis

    How to share &quot;constant&quot; among many modules

    Hi, I want to share the same constants among 3 modules e.g. Module A, B and C use the same constant $x. Could u pls suggest me how to do it? Thanks,
  9. rubis

    Extract the header of a Web site

    Thank you. It does work fine!!!
  10. rubis

    HTML::Filter problem

    Hi, I've got this code from an example in PerlDoc. It's a package to test HTML::Filter. From the manual, it says this package will count table tags and then make output not happen when inside a table. package TableStripper; require HTML::Filter; @ISA = qw(HTML::Filter); sub start { my...
  11. rubis

    Extract the header of a Web site

    to use 'Foo', the meta tag has to be <meta http-equiv=&quot;Foo&quot; content=&quot;...&quot;> ??? if the meta tag is <meta name=&quot;description&quot; content=&quot;...&quot;>, is the syntax should be &quot;$h->header('Description')&quot; ?? I've tried it but it doesn't work. Any suggestion...
  12. rubis

    Extract the header of a Web site

    Hi, I would like to extract the information of the header from a Web page. I've found an example as the following. use LWP::Simple qw($ua get); use HTTP::Headers; use HTML::HeadParser; $ua->proxy(http => &quot;http://www.proxy.com/&quot;); $h = HTTP::Headers->new; $p =...
  13. rubis

    How to use Access on LAN

    LLudden, Do you mean give the read/write access to users through VB application or to read/write MDB file through user profile??
  14. rubis

    How to use Access on LAN

    Hi, I would like to create a database and use it on LAN with 10 users accessing it. I prefer to write an EXE program in VB coz I don't want to install Access on every user machines. My requirement is each user can access to different part of the DB e.g. some can add data into tables and some...
  15. rubis

    regexp to search in &quot;http://www.server.com&quot;

    I have an input that could be http://www.svr.com/ or http://www.svr.com/file.ext if the input if &quot;http://www.svr.com/file.ext&quot;, I want to eliminate file.ext and get &quot;http://www.svr.com/&quot;. I've tried $url =~ m[^http://+?/+?\.*?] but it doesn't work. Any suggestion??

Part and Inventory Search

Back
Top