Hi.. This is Shraddha. i want to run .pl or .cgi files from apache server stored in cgi-bin directory of serevr.But it gives error - Internal server error. ...
Hello Out of above 2 attached files I could run form.cgi from Browser but could not run test.cgi since it was giving error as 'Premature end of script' Can...
Hi all; I've been trying to find out what i'm doing wrong but couldn't.Why am I keep receiving these messages back to back ?Any idea? "Possible attempt to...
Does anyone familiar with the error message that I'm keep receiving.I couldn't find out why I'm having this error. I would appricate for any help Belinda Here...
Hello, I'm making an analytical software for my school... It has something like this code: add_all(\%hash); which calls a subroutine like this (but not...
Good question. I don't know the answer, but I THINK it does NOT release the memory back to the OS. I did a little test of my own: * Used strict pragma to...
Hello !!! I want to run .cgi files through web browser. The file test.cgi is stored in cgi-bin folder of apache. Right now, what i am doing is as follows... ...
hello.. Can u tell me what exactly happens when u say $perl test.pl at the backend??? How this command is interpreted???or what are the steps through which...
I think that depends on what's in test.pl But i've tried: $ perl -w test.pl with the first line of the test.pl: #/usr/bin/perl -wT an error said it's to late...
... Don't you mean undef ($href) here? ... Basically, yes, but it depends on how the hash is used outside this sub. For example, if you had, before invoking...
Hi... I want to replace word - apples by oranges... for replacing the basic program is as follows... #!/usr/bin/perl -w $string1="apples apples"; $string1 =~...
... Check out the "perlrun" man page for the -i switch, which enables "in-place" editing for files. In your case, I think you should also read about the -p...
As an addendum, if we dont want to use a temp file, we can use something like this, open(TEST,"<text.txt") or die "hey where is the file??"; @file = <TEST>; ...
Hi!!! One way is to use perl in command line mode instead of creating an running a program. Here´s how perl -p i.bak -e 's/apples/oranges/g' file This will...
Why not do this instead: undef $/; open(TEST,"<text.txt") or die "hey where is the file??"; $file = <TEST>; close(TEST); open(TEST,">text.txt") or die "hey...
Hello, Recently, there were some discussion on replacing a word with another word in a file. Similarly, I have a requirement wherein I have to replace a word...
... I think the "e" modifier of the substitution operator might help here; see the perlop man-page. $line =~ s/apples/"*".apples()."*"/ge; # code not...
... This depends on the installed hardware, the swap space, the operating system in use, and the number of other programs competing for memory. You could ...
Hi ... I am trying to modify a file. I replace few words in file for which I go as follows.. 1.open a temp file(say a.txt) 2.write content of original file(say...
I do it like this: $old_txt = "apples"; $new_txt = sub_to_get_new_txt($txt); $line =~ s/$old_txt/$new_txt/g; HTH ... -- eman calso http://www.bloodpet.tk/ If...
Yup. That's what i meant... sorry. That means, the mem gets freed only after the end of the sub... w/c means i really have to use %{;href} everytime instead of...
... No, it means that the EARLIEST time memory gets freed is, when no references to it exist anymore. In practice, it might be garbage collected at any later ...
Please use "e" in the end I mean s/any thing/any valid perl expression/e; the "any valid perl expression" will be evaluated and then its result will be put...
Hello, Use chomp or chop before you create the new file. Or delete old file once you have read and created a new file a.txt then rename a.txt simple ...