Re: reading from socket

2015-08-12 Thread Uri Guttman
On 08/12/2015 01:53 PM, Brandon McCaig wrote: Keep in mind that when reading from a socket you're not reading directly from a hard link to the data. There's an entire network of devices that the data has to travel through to arrive at your machine. Lots can happen on the network. Packets can be

Re: reading from socket

2015-08-12 Thread Brandon McCaig
On Wed, Aug 12, 2015 at 12:40:29AM +0200, Chris Knipe wrote: > On Wed, Aug 12, 2015 at 12:16 AM, Chris Knipe wrote: > Looking at Data::Dumper - it actually looks like latin1 to me *seriously > confused* > > $VAR1 = > "L\\xAF\\xF3\\xDDWJL\\x94\\xEB\\xB2\\xF8\\xE1\\xACZ\\x89Ul;\\xB7\\xDE}1 > '\\x

Re: reading from socket

2015-08-12 Thread Brandon McCaig
Chris: On Wed, Aug 12, 2015 at 12:16:12AM +0200, Chris Knipe wrote: > > Firstly, if the handle isn't being read with binmode set then > > perhaps the \r\n are being converted to \n (if this is > > Windows)? How are you creating/initializing the socket? > > > > Unfortunately, with or without binmo

Re: Looking for introductory to advanced examples of RESTful programming in Perl

2015-08-12 Thread Hao Wu
what you looking for is not a rest server, but rest client. For JIRA, https://metacpan.org/pod/JIRA::REST I did not check the source, but it is should be a wrapper around some http client. you can follow Shlomi Fish's link to learn more about web automation as a start and then check the JIRA::R

Re: Looking for introductory to advanced examples of RESTful programming in Perl

2015-08-12 Thread Shlomi Fish
Hi Ken, On Tue, 11 Aug 2015 20:46:27 -0700 Kenneth Wolcott wrote: > Hello again; > > > take a look at > > > > http://www.todobackend.com/ > > > > you can port the mojolicious one to Dancer as a learning experience. > > Thank you for the tips... > > > You'd have to try any of the web framework

Re: Looking for introductory to advanced examples of RESTful programming in Perl

2015-08-12 Thread Andrew Solomon
Hi Ken, JSON REST services come with all three of the most popular web frameworks. Catalyst is the hardest to learn, but has more bells and whistles than you can poke a stick at; Mojo is a fairly self-contained framework which brings non-web specific functionality with it; and Dancer which is a ve