sugarkannan has asked for the wisdom of the Perl Monks concerning the following question:
while(1) { # pick up start position $position= index($content,'something.htm?',$temp_position); print"\n\n"; $temp_position=$position; # pick up till quote position while($arr[$temp_position] ne '"' ) { $page .= $arr[$temp_position]; $temp_position++; } print "\n\n"; # Printing URL print "Page: $page"; # Writing URL to a file print TXT "$page\n"; #RE-Initialization $page=$home; print" \n\nPosition: $position \n"; print"Temp_position: $temp_position \n"; if($reverse == $position) { last } }
Regards.
AK
Edit: g0n - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP beginner
by marto (Cardinal) on Oct 25, 2005 at 14:02 UTC | |
|
Re: LWP beginner
by blazar (Canon) on Oct 25, 2005 at 14:06 UTC | |
|
Re: LWP beginner
by puff (Beadle) on Oct 26, 2005 at 02:16 UTC |