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 strongm 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. rotis23

    fcntl instead of flock

    Thanks for your response Trojan. From the sendmail release notes for v8.13: "The Linux kernel version 2.4 series has a broken flock() so change to using fcntl() locking until they can fix it. Be sure to update other sendmail related programs to match locking techniques" This script scans...
  2. rotis23

    fcntl instead of flock

    Hi All, I've got a problem with a script running on a Linux 2.4 kernel where 'flock' is apparently broken. Therefore I'm thinking of using the 'fcntl' wrapper. Here's the existing flock call: $retval = flock(QF, $LOCK_EX|$LOCK_NB) So, I need to create an exclusive lock on an entire file...
  3. rotis23

    Finding size of scalar

    Thanks ishnid. That only works with scalars. Need to be able to size arrays (I guess I could cycle through) and other non-scalar entities.
  4. rotis23

    Finding size of scalar

    Thansk stevexff. What if I had some binary or object data? How could I determine the size (in bytes) used in memory?
  5. rotis23

    Finding size of scalar

    Hi All, How do I find the size (in bytes) of a scalar? Specifically, I want to find the size of a string (including control chars etc) in memory. Thanks, rotis23
  6. rotis23

    array ref

    Yeah, thanks Ishnid. I've just spent most of the afternoon on http://perl.plover.com and I've got very little coding done!!!
  7. rotis23

    array ref

    sorry - "doesn't work" means that $smtp is undefined i.e. there was an error within the SMTP module. ishnid - square brackets do work. Why? fishiface - @SMTPServerList is declared in main as: $SMTPServerList[0] = '127.0.0.1'; $SMTPServerList[1] = '127.0.0.2'; Thanks for your help people...
  8. rotis23

    array ref

    Hi All, Got a problem using a reference to a main array within a package. Why does this not work: my $smtp = Net::SMTP->new(\@main::SMTPServerList, Timeout => $main::SMTPServerTimeout); and this work: my @templist = @main::SMTPServerList; my $smtp = Net::SMTP->new(\@templist, Timeout =>...
  9. rotis23

    Network read timeout

    Looks like alarm is the way to go with DBI: http://search.cpan.org/~timb/DBI-1.48/DBI.pm#Signal_Handling_and_Canceling_Operations
  10. rotis23

    Network read timeout

    I would rather make the client tolerable of this problem that apply fixes to the firewall or server. This way the client can tolerate network outages and other failures that ungracefully terminate the connection. Apparently I can use SO_KEEPALIVE socket option to maintain a heartbeat within the...
  11. rotis23

    Network read timeout

    Hi All, I have a process that is having it's (MySQL DBI and Net::LDAP) connections terminated by a firewall after a period of inactivity. The problem is that the process (client) doesn't know this and attempts to read (well, actually the ldaps earch function and the mysql do function) from a...
  12. rotis23

    square brackets?

    Thought as much - cheers!
  13. rotis23

    Removing information from a string

    If you're just trying to pull out urls, try HTML::LinkExtor.
  14. rotis23

    square brackets?

    Hi All, What's the difference between declaring an array using square or normal brackets? Does it create a reference if they're square? Thanks, rotis23
  15. rotis23

    Data Structure Problem

    What I really need to do is to grab a value from the data structure based on another value. e.g.: Get MORE_DATA from the data structure where VALUE = 10. I know I can do this using an array and it's index, but the values aren't sequential from 0. I guess the other alternative is to search...
  16. rotis23

    Data Structure Problem

    Hi All, Wonder if you can help me because I'm getting bogged down with this. I have an application written in Perl that includes several modules and they all reference a Constants.pm module for obvious reasons. Now, I have some constants that are more complex than just a number and I've been...
  17. rotis23

    cpan http_proxy

    ;)
  18. rotis23

    cpan http_proxy

    apparently you have to use commit to make the 'o conf' change to the config.pm (or just hack the config.pm). Thanks for your help Mike.
  19. rotis23

    cpan http_proxy

    Thanks Mike. That works but the config isn't stored. If I exit and and then go back into cpan the old settings are restored.
  20. rotis23

    cpan http_proxy

    OK - figure out how to rebuild config: o conf init How do you specify none/nothing when it asks for a http_proxy?

Part and Inventory Search

Back
Top