ok i now have play.pl:
/start code
use Net::Telnet ();

my $f;
my $result;

$f = $ARGV[0];
$t = new Net::Telnet (Timeout => 10);
$t->open(Host => "localhost", Port => 9090);
$t->print("00:04:20:06:3b:85 playlist play ". $f);
$result = $t->getline;
$t->print("exit");
print $result;
/end of code

This works: perl play.pl "Eric%20Clapton" 
This doesn't: perl play.pl "Eric Clapton"

Is there a function to change $f to from "Eric Clapton" to
"Eric%20Clapton"?

Thanks for all the help!

Cheers
Louis


-- 
lrossouw
------------------------------------------------------------------------
lrossouw's Profile: http://forums.slimdevices.com/member.php?userid=3416
View this thread: http://forums.slimdevices.com/showthread.php?t=26293

_______________________________________________
discuss mailing list
discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to