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. greadey

    multiple perl versions

    It wouldn't be something as simple as the order in which */bin dirs are parsed in your $PATH variable would it?
  2. greadey

    How can I get other drive?

    /etc/fstab is the file system table, there needs to be an entry in it for every device you wish to mount under the root file system. /etc/mtab is the mount table. As devices are mounted, the mtab file gets modified by your lovely linux system and provides a running commentary on what is going...
  3. greadey

    How do I print unix format files from Windows

    Perl knows which line endings go with which OS so if, in Windows you open a unix file and chomp each line then print each line with "\n", then perl will know to put "\r\n" 'cos you're on Windows. It works the other way round as well. If you just want to read a *nix file in Windows then use...
  4. greadey

    Test for the existence of a file

    try man perlfunc, there is a list of the various test operators there.
  5. greadey

    How can I read in two different types of data from one line (OSG obj)

    How about something like this; while(<DATA>) { #data is: f 2//3 4//5 6//7 @line = split; # split all on whitespace shift(@line); # Get rid of the f foreach (@line) { ($vert1,$vert2) = split(/\/\//); $hash{$vert1} = $vert2; } Now you have a hash of...
  6. greadey

    How can I read in two different types of data from one line (OSG obj)

    How about something like this; while(<DATA>) { #data is: f 2//3 4//5 6//7 @line = split; # split all on whitespace shift(@line); # Get rid of the f ($vert1, $vert2) = map {split(/\/\//)} @line; $hash{$vert1} = $vert2; } Now you have a hash of vertex => normalvertex...
  7. greadey

    anyone know of a suitable program to work out UK tax?

    Yup, I believe it's something like that :-)) Seriously though if there is sxomething out there I can use without offending the tax return officer and thence the late payments officer I would be ever so grateful.
  8. greadey

    anyone know of a suitable program to work out UK tax?

    A bit OT perhaps but does anyone know of a suitable program for linux that will help me work out my tax so I can fill in my tax return. thanks, greadey
  9. greadey

    Uploaded file size is 0

    Isn't this something to do with the way you are opening the file, as in clobbering existing content ready for rewriting. You have used; open(FILE, ">$file"); IF you want to update without erasing it first try; open(FILE, "+>$file"); Have a good look at perlopen.
  10. greadey

    using perl to write to a bookmark in a word doc

    Hi all, Does anyone know what code is to be used to write to a bookmark in Word with perl? I've tried the following; #Code opens word and makes it visible $doc = $word->ActiveDocument; $sel = $doc->bookmarks("bk1")->Select; $doc->$sel->InsertAfer("here is some text"); perl seems to be...
  11. greadey

    Tk headache: passing arguments to a subroutine

    You can always try and use the sub as a "normal" one using this syntax; $canvas->bind($id, '<ButtonRelease-2>' => sub {netscape($org,$call_subject,$B_hits[$m]{qstart}, etc.)}); Course the other problem maybe that you're not dereferencing your arguments within the netscape function perhaps.
  12. greadey

    How do I execute Perl on Windows (XP Home Edition)

    Well your right, you should learn to love reading - especially about perl. Perl documentation is second to none and perl books are not only technically superb, but an excellent source of humour as well.
  13. greadey

    Keep getting emails returned that I never sent!!!!!!!!

    Right that seems sorted then, thanks for everyones' suggestions and help. Greadey
  14. greadey

    Keep getting emails returned that I never sent!!!!!!!!

    Thanks for everyone's reply. I ought to let you know that the machine in question is running debian woody and is standalone with intermittent dial up access. I was made redundant in march and of course had my Cv posted all over the place. Since then I have been getting 150 - 200 spams a day...
  15. greadey

    Keep getting emails returned that I never sent!!!!!!!!

    Hi all, I've recently been getting returned emails that were never sent by me conciously in the first place. Is this a sign of infection by e.g worm or is there another more likely scenario. Thanks, greadey.
  16. greadey

    reading in variable values from a file

    Oh yeah, don't forget to "chomp($value)"
  17. greadey

    Help creating a CSV file

    print OUT $count . " "; #code print OUT $dm . "\n";
  18. greadey

    reading in variable values from a file

    you could do something like this; my %hash; my $key; my $value; open(F, $file); while(<F>) { ($key, $value) = split(/\s=\s/); $hash{$key} = $value; } then you can do things like; $hash{'count'}++; $hash{'usability'}--; print "count = " . $hash{'count'};
  19. greadey

    Running make; make install on windows box

    Hi all, I've downloaded a module to drive a LabJack data acquisition device. After the usual perl Makefile.PL the next commands are make; make install. How do I get round this on a windows 2000 box? The module is definitely a windows module (the presence of *.dll files seems to give that one...
  20. greadey

    Perl vs AWK

    If it aint broke, don't fix it :-))

Part and Inventory Search

Back
Top