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 TouchToneTommy 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 gsr0

  1. gsr0

    foreach versus while

    while is also easier to use to loop through a hash than a foreach #foreach foreach $keys (keys(%hash)) { # gives you only keys. With values, the foreach loop # gets even more complicated. } # while while (($keys,$values) = each(%hash)) { # lets you use both values of a hash...
  2. gsr0

    Need help with a Perl script written to move user data

    Thanks for both suggestions. The script now works perfectly!
  3. gsr0

    Need help with a Perl script written to move user data

    I changed the code accordingly: #!/usr/bin/perl -w use strict; use File::NCopy qw(copy); my $oldserv = "./testing"; my $newserv = "./testing2"; my $usernumfile = "./usrbynum.txt"; my $usershortfile = "./srnames.txt"; my %finishedusers; open USERNUMS, "< $usernumfile" or die "$!"; open...
  4. gsr0

    Need help with a Perl script written to move user data

    OK, I've edited the code a bit more, using proper syntax with use strict. I am now getting a syntax error, and the script still wont work. New Code: #!/usr/bin/perl -w use strict; use File::NCopy qw(copy); my $oldserv = "./testing"; my $newserv = "./testing2"; my $usernumfile =...
  5. gsr0

    Need help with a Perl script written to move user data

    Please note that, although I am a student at this school, I am a friend with the sys admin, and I am helping with this merge for that reason. It is not homework (just thought I should clear any doubt, because I saw the note about homework).
  6. gsr0

    Need help with a Perl script written to move user data

    My situation is this: My school used to have their student/faculty login system setup, so each user loged in with their full name "First Last". This 'full name' was actually a psydonym for the real UNIX username, which was u character, followed by 3-5 addititonal digits (ie u881). We have since...

Part and Inventory Search

Back
Top