I remember seeing this awhile ago on this list and saved it:
bin2dec:
$out = unpack(N, pack(B32, substr(0 x 32 . $in, -32)));
bin2hex:
$out = unpack(H8, pack(B32, substr(0 x 32 . $in, -32)));
bin2oct:
$out = sprintf %o, unpack(N, pack(B32, substr(0 x 32 . $in,
-32)));
I was in the same boat as you and knew absolutely nothing about HTTP, HTML,
etc - nothing. The Perl Cookbook (O'Reilly) chapter 20 Web automation
got me going and I had a perl script in less than an hour.
Piece o' cake. If I can do it, anybody can do it.
Dan Murphy
The successor to Walsh's Learning Perl/Tk (O'Reilly) is Mastering
Perl/Tk (O'Reilly) and is much more complete.
Dan Murphy [EMAIL PROTECTED]
EMC Corp.508-249-3322
Hopkinton, MA 01748
EMC²
where information lives
Just did this with the help of Perl Cookbook (this book is great).
Chapter 20.6 Extracting or Removing HTML tags
use HTML::Parse;
use HTML::FormatText;
$plain_text = HTML::FormatText-new-format(parse_html($html_text));
Dan Murphy [EMAIL PROTECTED]
EMC Corp.
Thank you, too, guys. I learned a lot from those comments.
Dan Murphy [EMAIL PROTECTED]
EMC Corp.508-249-3322
Hopkinton, MA 01748
EMC²
where information lives
-Original Message-
From: ERIC Lawson - x52010
O'R has recently replaced their Learning Perl/Tk with Mastering Perl/Tk.
I haven't gotten a good look at it, but it's much more substantial (700+
pages) than its predecessor.
As much as people dumped on Learning Perl/Tk, it got me started on some
simple apps, but I'm a newbie GUI guy. I think
Here's what I've done to start an edit session from Perl:
use Win32::Process;
Win32::Process::Create($Process,
c:\\program files\\ultraedit\\uedit32.exe,
uedit32 $alljobs_list ,
0,
DETACHED_PROCESS,
.)|| die
at the Tools:Services
panel of Outlook, I got 'srmontana' as the name of the Exchange server. I
have also tried various combinations of these lines:
client = 'MURPHY5344A',
from = 'murphy, daniel (BMC Eng)'
but, to no avail - I still get the connect() error.
I know
I get,
connect() failed: Unknown error
Jenda said:
Does that server accept SMTP ?
If you try
telnet srmontana 25
do you connect and get a reply something like:
220 srmontana.emc.com MS Exchange ESMTP server ready.
If not you'll have to find another server to relay the
I thought I had been abandoned, but Andrea pulled thru for me. Thanks.
What hurts is that I had a similar problem about a month ago, and solved it
this way. The mind is the second thing to go
Dan Murphy [EMAIL PROTECTED]
EMC Corp.
OK, what's one more?
Boston, MA, USA
That souds pretty boring after hearing from the Netherlands, Austrailia,
Romania, etc. ;-)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Better yet, get Learning Perl on Win32 Systems (O'Reilly)
Dan Murphy [EMAIL PROTECTED]
EMC Corp.508-435-1000 x14559
Hopkinton, MA 01748
EMC2
where information lives
-Original Message-
From: Peter Scott
I have this snippet of code that I picked up from Learning Perl on Win32
Systems (O'Reilly) that may be helpful. For more info, check the
Win32::Process module. As a Perl rookie myself, I really can't explain it -
I just know it works. ;-)
use Win32::Process;
Win32::Process::Create($Process,
13 matches
Mail list logo