in reply to Is it possible to shorten this code?

With no higher knowledge, just drop all unnecessary characters:
use LWP::Simple;@a=<>;getprint"http://LeWebsite.com?a=$a[0]&b=$a[2]"

You might need to add chomp to the code, though, to remove newlines from the input:

use LWP::Simple;chomp(@a=<>);getprint"http://LeWebsite.com?a=$a[0]&b=$ +a[2]"
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Is it possible to shorten this code?
by ikegami (Patriarch) on Jun 16, 2015 at 18:01 UTC
    If the values were passed as args instead of STDIN, it would save a few chars.
    use LWP::Simple;getprint"http://LeWebsite.com?a=$ARGV[0]&b=$ARGV[2]"