![]() |
perl question
is their something like mechanize for a local file?
Code:
#!/usr/local/bin/perl |
No idea.. I've always user HTML::TokeParser
|
split=/regex/ works
This looks sort of nasty but works.
I used a Firefox bookmarks file. Some adjustments to the splits might be necessary for their regexes ... You don't need to use some complex module to manipulate a line of text in Perl. Perl has a very complex and efficient regex engine in its core distribution. I am sure there are more elegant ways to regex this but this works :) Code:
#!/usr/bin/perl Code:
http://trends.google.com/websites?q=xlovecam.com&geo=all&date=all&sort=0|Google Trends for Websites: xlovecam.com |
I will ask my girl later, she does a lot of Perl. Myself, I've always preferred Python over Perl, much cleaner etc.
|
actually instead of http://domain.com/bookmarks.html file:bookmarks.html works
|
open the read file <
open the write file if necessary > or >> print WRITEFILE "data ...\n"; If a module will handle many events install it. Problem is in the module installation. There are a lot of cases where users do not have access to root and use of the CPAN shell. Considering your prior attempt at using sed for this, I am assuming this is for local use of some sort. WWW::Mechanize is an interesting module. |
could always use the update_html method </ugly hack>
|
Quote:
|
All times are GMT -7. The time now is 09:34 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc