* max.spicer shaped the electrons to say...
It turns out that saying
print <$s>;
generally causes the script to hang, whereas saying
my $answer = <$s>;
print $answer;
works every time. Could anyone enlighten me as to why this is?
print operates in list context - and reading from a filehandle,
It turns out that saying
print <$s>;
generally causes the script to hang, whereas saying
my $answer = <$s>;
print $answer;
works every time. Could anyone enlighten me as to why this is?
Thanks for the help anyway!
Max
max.spicer Wrote:
> Thanks, I'll have a play with them tomorrow. They look
Actually, I already had done. My last posted attempt is a reworking of
that very script. :-) Have you ever tried printing $response? It
generally doesn't work for me. Don't waste any time on it though -
I'll have a closer look at things tomorrow.
You don't need $socket->autoflush (1); any mo
Thanks, I'll have a play with them tomorrow. They look as if they're
doing exactly what I'm trying to do at one stage, and in the same way
too. Hmm...
Max
mherger Wrote:
> Max
>
> > Okay, I've now got the following, but am still struggling to read
> > responses. The current <$s> is an optim
Shameless plug: see also the slim_cli.pl script here -
http://ultratrendy.com:31888/slim/
--
jth
___
Discuss mailing list
Discuss@lists.slimdevices.com
http://lists.slimdevices.com/lists/listinfo/discuss
Max
Okay, I've now got the following, but am still struggling to read
responses. The current <$s> is an optimistic attempt that occasionally
works, but generally just makes the script hang after doing the pause.
Have a look at some of Felix Müller's scripts (eg. the FollowMe.pl
http://www.gwe
Okay, I've now got the following, but am still struggling to read
responses. The current <$s> is an optimistic attempt that occasionally
works, but generally just makes the script hang after doing the pause.
#!/usr/bin/perl -w
use strict;
use IO::Socket;
my $player = '00%3A04%3A20%3A05%3Aa9%3A8
* max.spicer shaped the electrons to say...
As part of an attempt to refresh my rusty Perl knowledge, I'm trying to
do some scripting using the slimserver cli. For now, I'm just trying
to issue some queries. I'm currently using Net::Telnet, but aren't
sure if this is the best thing to be doin