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 arn0ld

  1. arn0ld

    Splitting Names

    do we know will never have: John Q Public III or Jane Smith Jr. ??
  2. arn0ld

    matching the contents of files?

    re: UNIX box: It has been my impression that if PERL runs on a box, *nix utilities are probably available. I checked the Marquis of Queensbury rules on 1 liners. Use of ";" in place of new-line is considered below the coding belt.
  3. arn0ld

    matching the contents of files?

    just for the record, sh/ksh/bash 1 liner: sort *txt|uniq -c >count.out
  4. arn0ld

    HTML formatting of Perl variables

    doesn't if ( $thecellspace ) { $self->{ TABLECELLSPACE } = $thecellspace; } change the calling object? so that (assuming $oMy can be used in the followiing manner): $the_table1 = $oMy->tablestyle("75%",1); $the_table2 = $oMy->tablestyle("65%");# has TABLECELLSPACE of $the_table1...
  5. arn0ld

    Sorting fields in a data file without a hash and without Schwartz

    i do not grok "writing a data file"? are there multiple files? Each time you run YourProgram, is it creating the file from scratch? or is it incrementally adding lines? and/or is it only displaying the fields to the user in requested order - i.e., is the sorted order transitory or...
  6. arn0ld

    Question about the %ENV hash

    your problem is not a perl issue, it is a cron issue. cron sets only a few environment variables. perl simply takes the current environment the script is running under and puts it into %ENV. any command/script run under cron is responsible for setting the "correct" environment variables. even...
  7. arn0ld

    compare two arrays

    #Still TIMT1WTDI @clktckt = qw(IM0001 IM0002 IM0004 IM0005); @probtckt = qw(IM0001 IM0006 IM0007 IM0008); # "exist in @clktckt and not in @probtckt." my %clockonly =(); @clockonly {@clktckt}= @clktckt; delete @clockonly {@probtckt}; my @clockonly = keys %clockonly ; # check it map { print...
  8. arn0ld

    Need to edit source from GUI

    my vote is for PaulTEG. We assume this is a relational database? If so, this is relational database 101. There must be a table in the database that contains employees and their department. So select info ..... from mytable, other_table where ... and other_table.deptno=DepartmentOfInterest...
  9. arn0ld

    perl vs. shell script

    shell scripting can require much more time & cpu resources than awk or perl. e.g, shell: grep my_file|sed 's/........ requires *nix to fork/exec 2 new processes to execute these utilities. Doing comparable operations in awk or perl will use only the original process. If there any looping...
  10. arn0ld

    compare 2 files

    sorry sort valid_host valid_host file1|uniq -u
  11. arn0ld

    compare 2 files

    of course, samples of valid_host/file1 would help But, assuming the 2 files are in same format, so that we are looking for unique lines in file1: sort valid_host valid_host file1|uniq
  12. arn0ld

    compare 2 files

    are you interested in using unix/linux command line?
  13. arn0ld

    Checking if one or more files exist

    what operating system are you using that allows, as I understand your posting, multiple files of the same name to co-exist in the same directory/folder? or, is the some sort of a regex in the file name?
  14. arn0ld

    Interpreting Javascript Issue

    have you previously used javascript? what do you mean " parse a webpage "? where did the page come from? do you have access to an httpd server to which can run submit your own scripts?
  15. arn0ld

    Problems with "./myscript.pl" but "perl myscript.pl" works f

    put /usr/sbin into your $PATH

Part and Inventory Search

Back
Top