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 dencom 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: *

  • Users: sun9
  • Content: Threads
  • Order by date
  1. sun9

    javascript to redirect to page

    hi, I am trying to redirect the user to another page using window.location when a particular condition is satisfied, e.g: the page the user comes from matches a certain criteria but for some reason I cannot get the page to redirect to the new location instead it just shows the current page...
  2. sun9

    current path

    Is there a way to find out my current path in perl?
  3. sun9

    regex to match filenames

    I am trying to create a regexp to match in a given directory all filenames without any extenstion, but I am having trouble with it- My regular exp prints the files with the . extension under my directory grep {/.*\..*$/ and $_ ne '.' and $_ ne '..' } But if I try something like grep {$_ ne...
  4. sun9

    installing Tie::File module in unix

    hi, I went through thread219-1237105 where advise has been given on installing perl modules for windows, I am currently trying to install Tie::File on my unix environment, could someone please advise as to how to go about this. Thanks.
  5. sun9

    alert boxes with perl

    hi, Is it possible to create alert boxes like in javascript using perl? Thanks.
  6. sun9

    empty data file check

    Hi, I am using the tie module to read the contents of a file as such- tie my @data, 'Tie::File', $file ; How do I go about checking if there is no data in the file? thanks.
  7. sun9

    write error to log file

    hi, I have a script that opens a file and throws an error to the standard output if the file does not exist, how do i get the error to be written into a log file in the same directory as the script? Also how do I go about checking if the file contains no data? open(FILE, $file)||...
  8. sun9

    Replace part of a file

    How do I go about replacing a part of a file with new content say just one line with a new line? Thanks.
  9. sun9

    calling java program from perl

    Is it possible to call a java program through my perl code and use the return value from the java program in my perl program?
  10. sun9

    Read file key value

    I am currently using a file that has key and value pairs is it possible to read those values into some variable in perl as we do with the property file in java? Thanks.
  11. sun9

    extract sentence

    I am trying to extract data that have been separated into columns in my csv using Tie::CSV_File, I am able to extract from all columns except one which is actually a sentence so when I try to get $date[4][4] I get just the first word from the sentence, how can I extract the whole sentence? tie...
  12. sun9

    extract row,column

    I am new to perl and working on a script to extract data from a csv file- my current code parses each line and prints the words from each line using the parse_line method of the Text::ParseWords module. When I try to print @words[1] it prints all the contents of the second column. How should I...

Part and Inventory Search

Back
Top