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 Chriss Miller 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 fishiface

  1. fishiface

    Tkweb: change cursor to hand2 over links

    Fair point, Kirsle. I should have read the original post properly. Apologies, fish ["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I...
  2. fishiface

    Tkweb: change cursor to hand2 over links

    The easiest and most standard way is with the CSS directive:a:hover { cursor: hand } This needs to be placed in the stylesheet within your page header. Yours, fish ["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had...
  3. fishiface

    Perl NET::Telnet

    What do you mean by "on the windows system"? If they are in your windows environment, you can access them as@lines = $t->cmd("/cc/ac_scr.sh $ENV{CL} $ENV{EA}"); Yours, fish ["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we...
  4. fishiface

    Regular expressions again :(

    I'd use Lingua::EN::NameParse (http://search.cpan.org/~kimryan/Lingua-EN-NameParse-1.24/lib/Lingua/EN/NameParse.pm), which handles most of the problems you are likely to encounter. Yours, fish ["]As soon as we started programming, we found to our surprise that it wasn't as easy to get...
  5. fishiface

    Generate Excel charts ?

    Have you found http://search.cpan.org/dist/Spreadsheet-WriteExcel/charts/charts.pod? Yours, fish ["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact...
  6. fishiface

    How to use form feed.

    Printers use several different command sets (normally referred to as emulations), some of which don't respect form-feeds. Your printer manual will tell you the correct escape sequence to use. It would be more resilient to use a library to drive the printer rather than having to change your...
  7. fishiface

    UNIX daemon goes down after closing perl

    This sounds more like a unix problem than a perl problem. If you use another telnet client and issue the same command, do you get the same problem? There are many reasons why the daemon might exit but the most likely one is that it detects the end of the telnet session. The kernel will...
  8. fishiface

    Windows - find if the file is currently open ?

    I don't know of a pure perl solution but both cygwin and the Windows Server 2003 Resource Kit (and possibly other resource kits) contain a untility called fuser, which will list the processes which currently have a given path open. Yours, fish ["]As soon as we started programming, we...
  9. fishiface

    Check if file is right type, and the file has right extension.

    You could use Paul's technique to get the extension as well - simply split on a period rather than a forwardslash. Yours, fish ["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered...
  10. fishiface

    1+1 Nearly Equals 2

    This is a "feature" of every computer language. Just as some innocent-looking fractions have infinite decimal expansions (1/3 = 0.33333333..) the same is true in binary and, indeed, every number base, although precisely which fractions terminate and which don't varies with the chosen base. For...
  11. fishiface

    printf in a subroutine

    There is no practical distinction between $format and "$format" and both the code fragments you posted produce identical results. I think you had a problem with your test procedure. Yours, fish ["]As soon as we started programming, we found to our surprise that it wasn't as easy to get...
  12. fishiface

    RC4 is pissing me off.

    Crypt::RC4 is pure perl, so can't you just copy it to your scripts directory and use lib? Yours, fish ["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact...
  13. fishiface

    replace a byte in a binary file using perl

    If you show us the code you have so far, it will be easier for us to understand the level of help you require. Yours, fish ["]As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I...
  14. fishiface

    CGI::Application::GDGraph issue

    The "line 44" refers to some code being evaluated, so it is possibly in one of the templates. Your best approach to solving this is with a debugger. If you have an X server or a TK installation, I'd recommend Devel::ptkdb and start your script with perl -d:ptkdb myscript. If you cannot get...
  15. fishiface

    Hash table inside class::struct

    my $h1 = new header; # construction $h1->hashtable( colour => 'red' ); # assignments... $h1->hashtable( size => 6 ); $h1->hashtable( type => 'rubber' ); print $h1->hashtable( 'type' ), "\n"; # print a value seems to be the Class::Struct way of doing things. I confess, I've not felt a need for...

Part and Inventory Search

Back
Top