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 derfloh 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. perlescent

    css drop down menu - help for IE rollovers plz

    Thank you Chris. I'll check that out. bazz
  2. perlescent

    css drop down menu - help for IE rollovers plz

    Hi, I have used a css dropdown menu which works both in Ie and FF however, it's better in FF. See how the route through the menu can be followed in ie, with the green border. How can I achieve this in IE? I have tried all I can think of but I seem either to have all links highlighted or...
  3. perlescent

    help with splitting array item into several <option> tags

    Aha :) got it. I'll post the result whenever I finish this bit of scipt. bazz
  4. perlescent

    help with splitting array item into several <option> tags

    in my text file, the line brought into the variable $doubleRoomNumber is like this: 001,002,010,015,026 etc. I want to list each of these within <option></option> tags. I am having trouble splitting the $doubleRoomNumber to do this. The number of rooms may be 200 or it could be 5 so I don;t...
  5. perlescent

    help with a hash please

    Solved. I used a different array that I had already compiled (and forgotten about), in my sub. A simple conditional gave the much-desired result :) bazz
  6. perlescent

    help with conditional please

    My ISP is running Apache with phpMyAdmin and MySQL. That's good to know that phpMyAdmin doesn't stop me using perl. I know that perl and MySQL would work together but I thought, in my ignorance that, it may need another software package. I nearly have this as a working model now. Once...
  7. perlescent

    help with a hash please

    Having run a number of loops, I have built two arrays. Then I have used Data::Dumper to remove duplicate entries from each array eg @vacantRooms = 29 30 01 20 03 04 05 29 30 01 02 30 01; is now, 29 30 01 02 03 04 05; similar done for @nights Requested. But how do I build a hash so that the...
  8. perlescent

    help with conditional please

    Well, I wouldn't exactly call myself a PERL wizard :) And I would rather stick with perl as the language though my ISP only offers a phpMyAdmin, which I guess would only enable me to admin, the SQL Db, using PHP. Not, yet, having looked into it, it probably seems more daunting than it really...
  9. perlescent

    help with conditional please

    Thank you Steve. I did know that the return would work but what I didn't know was whether it would cause the sub to be re-run whenever the @array was called in the next, or later, subroutines. And it's good that I don't need to make it global. bazz
  10. perlescent

    help with conditional please

    Thanks Steve. I didn't take it as a rant. :) I understand what you're saying about the separation issue. I shall look at that now. One further question; if I may... The sub which I have run to read in data from some files, builds a hash (%rooms) and an array @vacancies. having done that, the...
  11. perlescent

    help with conditional please

    Well, I am in the UK and, nope, I am not trying to make it easier to sell. I am intent on building a high-quality system and it's easier to keep track of what I want it to do, from my own perspective, if I have something of a model. I appreciate your advice and don't want to sound like I...
  12. perlescent

    help with conditional please

    Thanks Steve. Indexing/speed was the one thing I was aware of as a benefit with a Db. What I am actually trying to do is build a working model, so that I can then show it to a programmer, who may build me a MySQL 'version'. I reckon it would be easier to understand if seen 'working'. I know...
  13. perlescent

    help with conditional please

    Yeh, will do that. Thank you. Bazz
  14. perlescent

    turning fixed variable into an array

    Thanks Paul, I can see how that would work in one respect. However, I am not sure how it could work for this. Having looped through specific files (for bedrooms) and found one that is vacant (filename is Twin_001_2007-04-29) I want then to find out if that room is vacant on the following 5...
  15. perlescent

    help with conditional please

    well, there could be 500 rooms in the hotel and the capability to book up to three years in advance. thats 365/366 days, x 3 years x 500 rooms = 547500 files approx. That's just for one accommodation provider. There could be 50 of them in total. bazz
  16. perlescent

    help with conditional please

    Thank you Steve. Yes, you are right, I do create a separate file for each booked room. In fact, it's a separate file for each night, for each room. Few details, (checkInDate, checkOutDate, bookingReference), since the majority of the occupants data is held in a guest's details text file...
  17. perlescent

    turning fixed variable into an array

    here are the values I need to work with my $dateRequested = 01; my $numericalMonthRequested = 03; my $yearRequested = 2007; my $numberOfNightsRequested = 5; I need your help please. How can I run a loop, to created a file for each of the dates, 1st through to 6th?
  18. perlescent

    help with conditional please

    got it. :) while ( my $Line = <DAT> ) { last if ( index($Line, ':') == -1 ); chomp $Line; my ( $Keyword, $Value ) = split /:/, $Line, 2; #splits the line at the first : ignoring any others if ($Keyword eq "BookingReference") { $bookingReference = $Value; chop...
  19. perlescent

    help with conditional please

    I am sorting through a list of filenames within a dir. Opening the filenames I can read the bookingReference in a hash. if ($accommodations{$Keyword}) { $booked = 1; last; } # end if if ($booked) { &booked; } else { &vacancies; } The difficulty is that both instances will be true, most...
  20. perlescent

    Sub providing inconsistent output.

    Kevin you're a star!! In my sort of the $roomDate I hadn;t entered your snippet. (actually I hadn't entered it anywhere). But when I added it to the: foreach my $roomDate ( keys %{ $rooms{$roomNumber} }) { to give foreach my $roomDate ( sort keys %{ $rooms{$roomNumber} }) { There it...

Part and Inventory Search

Back
Top