im using the recommended open (FILE- ">>$file") with $file = "enquiries.txt"
i use ftp to upload my files to the server- i have created a perl script that resides on the server that takes information from html form posts- and is supposed to save it to the server- instead it tries to save it to the client pc instead
Can anyone kindly explain to me what does the following expression mean in PERL programming?
If (/^\s*\.*?\s+\.*?\s+(.*?)\s+.*\s*$/) {
print âœ$1\nâ;
}
I m working on loops (For- while commands). I noticed that after the loop is finished you need to close the file and opn it again so that the cursor or the line $_ will start again from the top once you tried to loop the fil again. Is there anyway to make the cursor or line to go to the top of the file again while looping instead of closing an opening the file again and start another loop?
sample data:
<tocdivision name="anz_guidelines redux" version="20080313">
program:
$_ =~ m/"([^"]*)"/ and print "found =$1=\n";
Someone helpd me with this program since i m new in perl. but the problem is it gets the data between th first 2 quotes "anz_guidelines redux". However I want to get the 2nd 2 quotes which is "20080313". please help???
No comments:
Post a Comment