Re: Suddenly.... Part 2

2014-08-05 Thread Carl Inglis
I'd start by adding: use warnings; use strict; at the top just above "use Tie::File;" That way you'll find out about any syntax errors or warnings. Not that I can see any. I'd then try a simple open(my $fh, "+<", "00-copy.htm") or die "cannot open 00-copy.htm: $!"; If that works then

Re: Need to understand what this script does.

2014-08-10 Thread Carl Inglis
On 10 August 2014 12:10, Uday Vernekar wrote: > i din't understand what the whole script is doing.I need to understand > first what this script is all about. > Can you give us some context? How did you come by this script? What does it run on? Looking through it my gut instinct says that it's d

Re: async, non blocking tcp server

2014-08-29 Thread Carl Inglis
I'm not sure if there's a misunderstanding somewhere (which may be mine). As I understand it what you want to do is launch a command towards the server, and then another, and then another, all the time waiting for a response to one or more of your commands. I suspect you're looking for something

Re: async, non blocking tcp server

2014-08-29 Thread Carl Inglis
27;re looking for a single threaded solution to an implicitly multi-threaded problem. I can't see any way for a single thread to do what you want. Regards, Carl On 29 August 2014 09:32, Chris Knipe wrote: > On Fri, Aug 29, 2014 at 10:10 AM, Carl Inglis > wrote: > > I susp

Re: async, non blocking tcp server

2014-08-29 Thread Carl Inglis
Hi Chris, I see your point, but everything I've found, both historically in my own work, and on the web, has been multi-thread, or even multi-process. For example, where I work at the moment we've got an application which runs on a series of monitoring equipment and dumps status to a disk file ev

Re: advice about event programming

2014-11-13 Thread Carl Inglis
http://stackoverflow.com/questions/2232471/how-do-i-use-async-programming-in-perl http://search.cpan.org/~mlehmann/AnyEvent-7.07/lib/AnyEvent.pm Hope that helps you get started. Good luck. :) Regards, Carl On 13 November 2014 15:44, mailing lists wrote: > Hello all, > > I have a little home

Re: advice about event programming

2014-11-13 Thread Carl Inglis
> > > http://stackoverflow.com/questions/2232471/how-do-i-use-async-programming-in-perl > > http://search.cpan.org/~mlehmann/AnyEvent-7.07/lib/AnyEvent.pm > > > > do you think that AnyEvent is better than POE? since I know nothing about > both I prefer learn the correct one even if it is a little

Re: why is if (! @ARGV) skipped

2014-11-18 Thread Carl Inglis
Interesting - in perl 5.10.1 on my system it works as expected. One point to note, your "$myscript" in your usage should be escaped otherwise you get an error. You might want to: use Data::Dumper; print Dumper(@ARGV); just before your test to see what it thinks @ARGV is actually set to... Be i

Re: ? getting appended to file name while writing o file

2015-03-19 Thread Carl Inglis
It's not actually ending up with a ? character at the end - it's ending up with a new line character. Your terminal is (as Andrew implied) displaying a ? character for a character code outside the range of characters it knows it can display. Regards, Carl On 19 March 2015 at 11:19, Andrew Solomo

Re: ? getting appended to file name while writing o file

2015-03-20 Thread Carl Inglis
> >> Bill, Carl, Andrew, >> >> Thanks a lot for your answers. >> yes, i will make the change to use the perl utilities as it will make the >> code platform independent. >> >> Regards, >> Satya >> >> >> >> >> On 19 M

Re: When is qw used

2015-06-10 Thread Carl Inglis
Some modules import all their endpoints by default; other only export a subset, requiring you to explicitly request others. Carp does not, by default, export "cluck". Regards, Carl On 10 June 2015 at 13:40, rakesh sharma wrote: > Hi Krzysztof > > If that was the case , using the subs inside C