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...
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.
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 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 =...
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...
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.
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.