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...
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...
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.
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.
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)||...
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.
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.