Lightning flashed, thunder crashed and "Sparkle Williams" <[EMAIL PROTECTED]> 
whispered:
| I wrote a program running off a Windows NT platform and was trying to 
| convert it to a UNIX platform. My problem comes with my syntax. I keep 
| recieving an error message and was hoping someone could help me fix the 
| syntax so that the script would run.
| 
|    use lib 'LWP::Simple'
| 
|         use LWP::Simple
| 
|         $doc = get ($url)

If this is really the code you have in your script, you are dealing with
several different errors.  First of all, you need to have semi-colons (;)
at the end of each of your lines of code.  Second, the arguments to "use
lib" should be real path names, not module names.  You would need to change
the use lib statement to "use lib qw{/path/to/lib};" where lib is the
directory that LWP/Simple lives.  So, just to start with, your code should
look something like this:

usr lib '/home/luvz99/lib/perl';
use LWP::Simple;
$doc = get ($url);

Also, since LWP::Simple is part of the standard distribution, there
shouldn't really be any reason to have the use lib anyway.

-spp
--
Stephen P Potter                                         [EMAIL PROTECTED]
"You can't just magically invoke Larry and expect that to prove your point.
Or prove that you have a point."        -Simon Cozens
UNIX, Perl, PHP, Web Consulting and Training  http://www.unixlabs.net/~spp/


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to