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 Mike Lewis 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. jonadab

    Interesting results (tangent of the 8 base-pairs thread)

    Hi, not sure if this thread still matters to anyone, but for the sake of posterity... > well, if anyone is following this thread, I decided that > when the hash keys are converted into an array here: > > my @base_pairs = keys %base_pairs; > > something is happening that I do not understand. I...
  2. jonadab

    Hashes of Arrays - Relationship

    Output: - [119] TEST 119 / TEST 119 (PPR119A,PPR119B) |- [121] TEST 121 / TEST 121 (PPR121A,PPR121B) | |- [14] TEST 14 / TEST 14 (PPR14A,PPR14B) | | |- [113] TEST 113 / TEST 113 (PPR113A,PPR113B) | | | |+ [220] TT (TT-A) | | |- [114] TEST 114 / TEST 114...
  3. jonadab

    Hashes of Arrays - Relationship

    I have taken the liberty of refactoring this a bit... #!/usr/bin/perl -wT # -*- cperl -*- use strict; use warnings; use Data::Dumper; my %data; # First, describe the data: my %rectype = ( group => +{ # Change * to + if fields are not allowed to be empty...
  4. jonadab

    Hashes of Arrays - Relationship

    > if you depend on the numeric sorting (by ID) to generate > the list, is there any way to sort it by Name ($_[1]) Yes. Here is the part of Kevin's code that does the sorting for output purposes: sort {$a->{ID} <=> $b->{ID}} That occurs two places, in output and in outputkids. Both places...
  5. jonadab

    Malicious command check

    > IS there a module or a set of filters I can run against > a value to check and see if it is a malicious commmand? Any such module would be highly bug-prone, because of the large number and wide variety of potential malicious commands. It's much safer to take the opposite approach: don't...
  6. jonadab

    Line Numbering?

    > I found STRICT and WARNINGS very annoying at first but > have since learnt to live with them and find they are > extremely useful. Yeah, I don't always use strict for short scripts, but it is definitely handy for longer ones, *especially* anything long enough that you start thinking about...
  7. jonadab

    how to delete a file in a dir...and/or clear contents of directory...

    > unlink "file.txt"; > Is there a better/correct way to delete a file? This way is correct. There are other ways, but there is not a better way. In fact, this way is better than some of the others, because it will work (assuming the filename is correct) irrespective of platform, and also...
  8. jonadab

    MySQL form handling

    > I created the 'INSERT' string programatically for my > auto populate routine and will follow the same path > with the working table. Yes, INSERT is the usual way to add new records. For modifying existing records, UPDATE is more what you want, something along these lines: my $q =...

Part and Inventory Search

Back
Top