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 wOOdy-Soft 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 m4trix

  1. m4trix

    find function question

    excellent, thx hoinz - I tried that too, but I put the ! right next to the -name and it didn't work. off by a space!
  2. m4trix

    find function question

    How do you exclude a file from a find? for example, I want to find all files in a directory except for the file "xxxx" (if it exists)
  3. m4trix

    prevent accidental closure of a window

    billyray or jontymc, mind giving an example of how I could do that?
  4. m4trix

    prevent accidental closure of a window

    lol BillyRay, that was my arguement too. Jonty, that was also an option- saving data 'on the fly'. I'm not sure what the best method to do this would be though. Perhaps I could add a mysql table to contain temporary data, and every time a form field is unfocused it saves the data. Then if...
  5. m4trix

    prevent accidental closure of a window

    hmm.. I think it is too. Most users will be on macs, using either safari or mac IE (which is garbage and likely wont support it either)
  6. m4trix

    prevent accidental closure of a window

    I'm wondering what the best way to prevent users from accidentally closing the current window, or even navigating away from the page. The page in question is a data entry page, and since people tend to accidentally close windows, I want to add a script to pop up a confirmation box or something...
  7. m4trix

    shift array, element deleted but then comes back! huh?

    I'm hoping someone can explain why an array with one element, when 'shifted' in a subroutine continues to contain one element once the subroutine finishes. Consider the following: use Data::Dumper; @arrayone = [10, [1, 2, 3]]; @arraytwo = (); $number = 10; print "OUTSIDE...
  8. m4trix

    arg! somewhat complicated mixed datastructures!

    excellent. thanks a lot guys
  9. m4trix

    arg! somewhat complicated mixed datastructures!

    I'm sure this is simple, but I can't seem to align my thoughts right. I have a file that I'm reading into an array with a series of values. For the sake of arguement we'll say there's three numbers, then any number of other numbers. I want to store the first three numbers separately, and then...
  10. m4trix

    "Modification of a read-only value" Error. Why?

    if I have this code (using on a mysql database): while (my $row = $sth->fetchrow_arrayref) { foreach (@$row) { $_ = "NULL" unless defined } my (@end) = splice(@$row, -2); print join (", ",@$row)." - ".join(", ",@end)."\n"; } it will print the first row as it should, then it gives a...
  11. m4trix

    help forming a query! :)

    EDIT: oops, bit off, here we go: "SELECT DISTINCT `staffid` FROM `staff` WHERE NOT EXISTS (SELECT * FROM `users` WHERE users.`staffid` = staff.`staffid`) AND `has_user` = '1';
  12. m4trix

    help forming a query! :)

    I found a solution... It required upgrading my mysql DB from 4.0 to 4.1 - but here it is: "SELECT staffid FROM staff s WHERE NOT EXISTS (SELECT u.staffid FROM users u WHERE u.staffid = s.staffid) AND s.has_user='1'" brilliant
  13. m4trix

    help forming a query! :)

    Ok, here's the set-up. I have two tables, for simplicty, we'll say users and staff the important fields are users.userid users.staffid and staff.staffid staff.has_user (enum('0','1')) All users must have an associated staff id (hence the users.staffid) but not all staff needs an associated...
  14. m4trix

    MSN client in perl

    oh, PS - I mean MSN Messenger client... I'm simply looking for a way to change my nickname through a perl script instead of through the messenger interface... No real reason why.. just something to do
  15. m4trix

    MSN client in perl

    Anyone seen/have a working version of one? I found a couple modules, but they don't work. I think they may be outdated, but I'm not sure.

Part and Inventory Search

Back
Top