Last page
How can I get the URL which was calling my script (like document.referrer in Javascript) tks
Re: Last page - That's OK
It was all I need Thank you Stéphane JEAN BAPTISTE a écrit : > How can I get the URL which was calling my script (like > document.referrer in Javascript) > > tks
to delete a file
How can I delete a file ? thanks
Re: to delete a file - That's OK
It's allright! thank you Stéphane JEAN BAPTISTE a écrit : > How can I delete a file ? > > thanks
to delete only one line
HI. I'm looking for a method to delete the line number x into a file. Is it simply possible ? tks
to copy a file (with perl)
Hi. Hw could I copy a file in Perl tks
types of datas
Hi! I get a value from a URL and I put it into a variable. I have a loop (while) with a value which have different values. The problem is that when I compare the first and the second value: If they're really equals, the program say they are'nt. Is ther a function to convert a value into an integer ? tks (sorry for my english :-) )
Re: to copy a file (with perl)
This is my code : /^valeur=/ && do { $val=$_; $val=~s/valeur=//; }; open(IN,"actualite.txt"); open(OUT,">>tamp.tmp"); $i=1; while ( $line = ) { if ( $i != $valeur ) { print OUT $line; }; $i++; } close IN; close OUT;
chomp ?
What is chomp ? tks
To replace a string with another
Hi. I want to replace the String %0A by nothing. I'm using this line: $description=~tr/%0A//; But nothing change. What is my problem ? tks
Re: To replace a string with another
Stéphane JEAN BAPTISTE a écrit : > Hi. > I want to replace the String %0A by nothing. I'm using this line: >$description=~tr/%0A//; > > But nothing change. > > What is my problem ? > > tks PS: There is'nt only 1 string but a lot.
to delete the trailing newline
I have a variable and I want to write it into a textarea (HTML). The problem is when I look at the textarea in my HTML page, there is the text I want, plus a trailing newline. How can I delete this. My variable: "$texte="wazaa";" In textarea: "wazza " tks Sorry for my english steph
Re: to delete the trailing newline
"Brett W. McCoy" a écrit : > On Wed, 27 Jun 2001, Stéphane JEAN BAPTISTE wrote: > > > I have a variable and I want to write it into a textarea (HTML). The > > problem is when I look at the textarea in my HTML page, there is the > > text I want, plus a trailing newline. > > > > How can I delete this. > > > > My variable: > > "$texte="wazaa";" > > > > In textarea: > > "wazza > > " > > You can chomp off that trailing newline using 'chomp'. Weren't you the > guy who was asking about it yesterday? Yes! But "chomp" delete it in perl but not the conversion in HTML.
delete the last string
Hi I want to delete a string but only the last. Example/ I am the titi last human on titi earth. -> I want to erase the last "titi" nut not the other. How can I do this thanks
trailing newline
Hi I need the (hexa?) code for trailing newline, but not "\n". I need a code like (é or é for é) tks
conversion Perl<->HTML
HI. On the first side, I have a line of text into a file. On the other side, I want to write this text in a "textarea" Tag. In the text which is coming from the file, I have "\n", to have a trailing newline.EX: "First line \n Second Line". I get the text from the file and I put it into the variable "$texte". When I write (In Perl) : print "$texte"; : in the "textarea", there is "First line \n Second Line" but I want: First line Second Line". But, if a write $texte="First line \n Second Line" before the HTML code, the text is correct. How can I convert the text from the file to the "textarea"? tks.
return 0;
What's the equivalent command for "return 0" in C/C++. This command allow you to stop your program immediately. tks
to have URL's call
How can I have the URL which is calling my script? ex: the name of my script is : "script.cgi" URL is : http://www.computer.com/script.cgi?toto=12&titi=25 I want to have $var=toto=12&titi=25 or $var=http://iti=25 . tks
to reach an URL
I'm looking for a command which permit to reach an URL from the script. tks PS: sorry for my english :-)