<?xml version="1.0" encoding="windows-1252"?>
<node id="998310" title="Re: LWP UserAgent" created="2012-10-10 16:10:07" updated="2012-10-10 16:10:07">
<type id="11">
note</type>
<author id="72516">
blue_cowdawg</author>
<data>
<field name="doctext">
&lt;ul&gt;&lt;ul&gt;&lt;i&gt;
Hi Monks, I have no knowledge of perl, so please forgive.
&lt;/i&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;p&gt;
My heartfelt advice to you is to fix that problem before going any further.  Just as I'd not get into a car and drive cross country before I learned a) how to drive and b) how to navigate I don't suggest trying to do something as sophisticated as you're attempting without learning the basics first.
&lt;/p&gt;
&lt;p&gt;
That said, let me lay out a foundation for you.
&lt;code&gt;
#!/usr/bin/perl -w 
################################################
# First line is called a "shebang" and on a *nix or Cygwin environment loads the 
# interpreter
use strict;  # keep an eye on our code looking for major faults
use LWP::UserAgent;

my $res=authenticate();        # Call your sub.  You might want to  
                               # decide what to do with the return code.
# more code goes here
exit(0);

#the code you posted goes here
&lt;/code&gt;
&lt;p&gt;
Find your self a book such as [isbn://1449303587|Learning Perl] to get a handle on things. I wouldn't attempt to build a house without some basic construction technique knowledge.  
&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-72516"&gt;
&lt;hr&gt;
&lt;font size="-2"&gt;

Peter L. Berghold  -- Unix Professional&lt;br&gt;
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg&lt;br&gt;
&lt;/font&gt;
&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
998306</field>
<field name="parent_node">
998306</field>
</data>
</node>
