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 Mike Lewis 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
  • Order by date
  1. sun9

    javascript to redirect to page

    The referring page is passed as a url parameter which i retrieve using another javascript function.
  2. 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...
  3. sun9

    current path

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

    empty data file check

    ok thanks.
  5. sun9

    empty data file check

    If the data is present in the file what will be the value of scalar @data ?
  6. 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...
  7. sun9

    installing Tie::File module in unix

    I tried perl Tie::File -e l and it looks like the module is installed because I did not get any errors but for some reason my unix system does not seem to recognize this module and my code doesnt work like it should on the unix box but works on my windows env.
  8. 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.
  9. sun9

    alert boxes with perl

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

    write error to log file

    Thanks travs69 that helped.
  11. 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.
  12. 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)||...
  13. 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.
  14. sun9

    extract sentence

    Thanks for your help MillerH and Kevin. The problem is with my environment.
  15. sun9

    extract sentence

    I tried that still doesnt work, I started having this problem after I added chdir to my code.after trying to run the code with the chdir I reverted back to the earlier working and code and it too did not work...could using chdir have something to do with my issue? my $code =...
  16. sun9

    extract sentence

    nope, removing the open statement doesnt help.
  17. sun9

    extract sentence

    hi, I was able to extract the data from the file just like I needed and everything was working fine, but now suddenly for some reason I cannot extract the data using $data[3] or $data[$i] and I am not sure why and my print($mydata[3]) displays nothing...is this because of my open statement...
  18. 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?
  19. sun9

    Read file key value

    Thanks mbrooks.
  20. 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.

Part and Inventory Search

Back
Top