Re: IO::Socket::Multicast::mcast_send

2020-04-05 Thread James Kerwin
) work now! Thanks for the help. James On Sun, Apr 5, 2020 at 4:03 PM Shlomi Fish wrote: > Hi James, > > On Sun, 5 Apr 2020 14:58:26 +0100 > James Kerwin wrote: > > > Hi All, > > > > I'm trying to connect to a smart bulb on my home WIFI using mcast_send >

Re: IO::Socket::Multicast::mcast_send

2020-04-05 Thread James Kerwin
ter and can directly ping the ip from the laptop and pi. Thanks, James On Sun, Apr 5, 2020 at 4:03 PM Shlomi Fish wrote: > Hi James, > > On Sun, 5 Apr 2020 14:58:26 +0100 > James Kerwin wrote: > > > Hi All, > > > > I'm trying to connect to a smart bulb on my

IO::Socket::Multicast::mcast_send

2020-04-05 Thread James Kerwin
Hi All, I'm trying to connect to a smart bulb on my home WIFI using mcast_send in IO::Socket::Multicast. It works on my main Linux Mint laptop. The same script does not work on my Raspberry PI. Despite the script running as expected on one laptop I've checked that this is all set up correctly:

Re: Google Sheets API Data Structure

2019-08-16 Thread James Kerwin
Thanks Dave and Mike, I am using Net::Google::Spreadsheets and all the associated modules and yeah there I slept on this and then managed to see what could be seen this morning: print Dumper($ws[0]{atom}); print Dumper($ws[0]{container}); I should have been a bit clearer on what I was hoping to

Google Sheets API Data Structure

2019-08-15 Thread James Kerwin
Hi All, I managed to get the Google Sheets API Perl module working. I'm currently investigating a data structure that it gives me to see what values I can get from it. Through random experimentation I've managed to find that it had "title" and "id". I wrote this to get the data structure contain

Re: Install Problems: Net::Google::Spreadsheets

2019-08-08 Thread James Kerwin
I am on Win7 - Strawberry Perl V 5.26.1 > > > Mike > > > On 8/5/2019 9:47 AM, James Kerwin wrote: > > Hi All, > > > > I'm having some difficulty installing a Perl Module; > > Net::Google::Spreadsheets". Inititally it was installing in to my user &g

Re: Install Problems: Net::Google::Spreadsheets

2019-08-07 Thread James Kerwin
ANJOU/Net-Google-DataAPI-0.2805.tar.gz Failed during this command: DANJOU/Net-Google-DataAPI-0.2805.tar.gz : make_test NO On Mon, Aug 5, 2019 at 5:56 PM Shlomi Fish wrote: > hi James, > > On Mon, 5 Aug 2019 15:47:45 +0100 > James Kerwin wrote: > > > Hi All, > >

Install Problems: Net::Google::Spreadsheets

2019-08-05 Thread James Kerwin
Hi All, I'm having some difficulty installing a Perl Module; Net::Google::Spreadsheets". Inititally it was installing in to my user account home directory and I wasn't certain how to change this, so I just added the directory to my @INC (this isn't a live server, it's purely for me to test on at t

Website Files Preview as Thumbnail

2019-04-26 Thread James Kerwin
Hi All, I promise this question is about Perl. I've googled this a lot and still can't find where to start. I run a publications repository/website that uses Perl on its back end. On each page I have a series of files. At the moment they display a thumbnail as the file icon (different for file ty

Data::Dumper Output

2019-01-25 Thread James Kerwin
Hi All, I needed to slightly alter the behaviour of a module I use in Perl. In order to see the data structure I used Data:Dumper to get an output so I could find the piece that I required for the change of logic. To my shock and horror it gave me this: $VAR1 = bless( do{\(my $o = '139790129395

Re: Syntax "||" before sub

2018-11-22 Thread James Kerwin
Hi Sebastian, Thanks for that info! It's much more thorough than what I discovered about this. I'll keep it in mind as I delve deeper... Thanks, James On Thu, Nov 22, 2018 at 1:58 PM James Kerwin wrote: > Ahhh sorrry to reply to my own post but I found this: > > https:

Re: Syntax "||" before sub

2018-11-22 Thread James Kerwin
t; is defined... which is not a problem for this list to solve! Thanks, James On Thu, Nov 22, 2018 at 1:48 PM James Kerwin wrote: > Hi All, > > I'm looking through some Perl files for software we use and I noticed this > in one of the config files: > > $c->{guess_doc

Syntax "||" before sub

2018-11-22 Thread James Kerwin
Hi All, I'm looking through some Perl files for software we use and I noticed this in one of the config files: $c->{guess_doc_type} ||= sub { All other similar config files show a similar structure, but without the "||" before the equals sign: $c->{validate_document} = sub { My question is, wh

Perl Email and WuFoo Forms.

2018-10-02 Thread James Kerwin
Hi All, I have a Perl script that pulls in some information, generates an email, sends the email to a person and provides a URL to a WuFoo form. This URL contains the information to populate most fields in the form and could populate all of the fields. What I don't know is how to submit the form.

Eclipse/Epic/PadWalker for Perl

2018-07-30 Thread James Kerwin
Hi all, I appreciate this isn't a place for the Eclipse IDE, but maybe some of you may have an answer. I installed Eclipse Photon, EPIC and then PadWalker. Unfortunately I can't seem to see variables and their values in eclipse. I can't seem to find a diagnosis or solution. Would anybody be able

Re: Unfamiliar syntax

2018-07-23 Thread James Kerwin
Morning All, Thank you for the help, it's really useful and gives me plenty to look at. When you know what something is called (e.g. anonymous subroutines) it becomes much easier to look it up. Thanks, James On Fri, Jul 20, 2018 at 5:47 PM, Octavian Rasnita wrote: > *From:* Jame

Unfamiliar syntax

2018-07-20 Thread James Kerwin
Afternoon all, I have been asked to take a look at a .pl file which is part of a set-up called "EPrints". The particular file controls who can access documents on a server. Excluding some comments, the file starts like: $c->{can_request_view_document} = sub { my( $doc, $r ) = @_; It the

File Size Limit

2016-04-08 Thread James Kerwin
Good morning/afternoon all (depending on where you are), This should be a quick one: When creating files in a perl script is there a way to limit the size of the file created? If somebody could give me a term to search for that should be enough. I have googled this but I can't find an answer. I'

Re: Counter Help

2016-02-12 Thread James Kerwin
ood. I solemnly swear to properly learn hashes and use them (and to stop thinking of them as "weird"). Again, thank you for the help! It's very appreciated. James. On Tue, Feb 9, 2016 at 6:37 PM, Jim Gibson wrote: > > > On Feb 9, 2016, at 6:46 AM, James Kerwin wrote: >

Re: Counter Help

2016-02-09 Thread James Kerwin
(@other, (join "", $_,$ii)); }} foreach (@other){ print "$_\n"; } This gave me the desired output. Like I said, I'll investigate the other way later... Thanks, James. On Tue, Feb 9, 2016 at 2:22 PM, Jim Gibson wrote: > > > On Feb 9, 2016, at 6:08 AM, James Kerw

Counter Help

2016-02-09 Thread James Kerwin
Afternoon all, I have the following problem: I have an array containing a list of non-unique strings. eg: @array Contains: 11_ 22_ 33_ 33_ 33_ 44_ 44_ 55_ What I would like to do is number each element of the array to look as follows: 11_1 22_1 33_1

Re: Perl CGI-html quotation marks

2014-07-04 Thread James Kerwin
t I hadn't closed the button THING with a ">". Apparently with that it's able to handle the single quotation marks. What a fool! Thanks, James. On Thu, Jul 3, 2014 at 5:23 PM, Uri Guttman wrote: > On 07/03/2014 12:16 PM, James Kerwin wrote: > >> Hello a

Perl CGI-html quotation marks

2014-07-03 Thread James Kerwin
Hello all, I'm currently using Perl CGI to generate a "Results" webpage. This results webpage specifies unique directories generated within the script and print these in between the blocks of html so various download and display buttons work. My problem is that I'm using a button to open a file i

Re: Brackets in scalar and array

2014-05-29 Thread James Kerwin
It seems so obvious now. Should possibly have just tested it myself before asking... Thank you all for the explanations! On 29 May 2014 21:36, "Jim Gibson" wrote: > > On May 29, 2014, at 1:20 PM, James Kerwin wrote: > > > Hello all, long time lurker, first time requ

Brackets in scalar and array

2014-05-29 Thread James Kerwin
Hello all, long time lurker, first time requester... I have a Perl exam tomorrow and came across a question that I just cannot find an answer to (past paper, this isn't cheating or homework etc.). Explain the difference between: ($test)=(@test); And $test=@test; If anybody could shed any ligh