TCP apllications

2008-06-06 Thread Arun
Hi, This is Arun here, i am new to Perl so i was just thinking of programming the TCP apllications or working. So how do i do that, just needed guidance from you. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Unable to read the string

2008-07-30 Thread Arun
Hi this is Arun here, i am new to perl.Here i am trying to read a string from the serial port but i am not able to and this is my program: # Read serial port until message or timeout occurs sub ReadPort($$$) { (my $String, my $TimeOut, my $Display) = @_; $ob->read_const_time($Time

String

2008-08-13 Thread Arun
Hi, As i am new to perl i just wanted to define a string with the current date and time. For example: current_date-current_time::Arun::current_date,current_time,Prakash so how do i define this string.. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

String

2008-08-19 Thread Arun
What is wrong with this string. $send_data = (print strftime "::DATA::123456789101112,%d.%m.%y,%H:%M: %S,13.0076367,77.5489267,0,933.4,AirTel,31,0", gmtime); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Repeating the array

2008-08-20 Thread Arun
Hi, I just wanted small help here, i want to repeat an array for every 30 seconds. lets us keep i want to send an array for every 30 seconds and also should be able to quit as per the user. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http:/

Repeating the loop

2008-08-27 Thread Arun
Hi, i am new to perl so i uat wanted some help. i wanted the followinf loop to be repeated for every 30 seconds. $send_data = strftime( "::DATA::123456789101112,%d.%m.%Y,%H:%M:%S, 13.0076367,77.5489267,0,933.4,AirTel,31,0 \n", gmtime); DATA: {while(1) { $handle-> send($send_d

importing to excel file..

2004-03-17 Thread Hiremath Arun
hi Anyone help me in importing data from a text file in to a excel.. Arun -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Syswrite Function in Perl

2007-01-02 Thread Arun . S
> $input = ; > @input = split(/ +/, $input); > $new = join ("", @input); Why not just modify the string instead of splitting and joining: ( my $new = ) =~ s/ +//g; I believe the above line does not work. It must be ( my $new = ) =~ s/ \+//g; Whilst this email has been checked for all known

run command in a particular dir

2007-01-08 Thread Arun . S
Hi, I need to run a particular command "cleartool des " from a partiuclar folder. For example: I need to get into directory m: cd \ Arun_Main and then run cleartool des $temp . I wrote the following code for this foreach $temp(@vob2) { qx(m: cd \\Arun_Main); $x = qx(cleartool des $temp); $hash{$

Re: Passing hash into sub routines (should i use reference?)

2007-01-17 Thread Arun . S
Hi, Suppose I have this code: #/usr/local/bin/perl use warnings; use strict; use subs 'verify'; my %where=( Gary => "Dallas", Lucy => "Exeter", Ian => "Reading", Samantha => "Oregon" ); # Then i open a logfile open FH, '<', $logfile or die "Can't open $logfile

Re: array operation

2007-02-26 Thread Arun . S
Hi, On 2007/02/26, at 10:12, John W. Krahn wrote: print map "$_\n", @test; print "$_\n" for @test; Another solution is setting the $" variable: my @array = qw(1 2 3 4 5); {     local $" = "\n";     print "@array"; } The above code does not seem to work for me. I get an error say

cpanm install

2012-11-29 Thread ARUN SRINIVASAN
ing if two methods of installing have any differences and will it impact my module library by any chance. Thanks Arun

File Type

2010-04-13 Thread Arun P Menon
Hi All, Could you tell which is the best perl module for finding file type? I am currently using File::Type but its missing out some (Shared libraries, c programs etc...). Is there any modules to search those files. -- Regards, Arun Menon -- To unsubscribe, e-mail: beginners-unsubscr

while and eval

2010-04-21 Thread Arun P Menon
Hello All, Could you tell me what does the following do? 1 while (<>); Also, how does 'eval' work and when is it useful? What is the difference if we put a block inside eval like: eval ( }; -- Regards, Arun.P.Menon

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Arun G Nair
On Tue, Nov 23, 2010 at 10:13 PM, Amit Saxena wrote: > > On Tue, Nov 23, 2010 at 10:09 PM, shawn wilson wrote: > > > Well, each new ssh connection should spawn a new process so you could look > > at it from that end. More technically, you could look into netstat or lsof > > modules. > > On Nov 23

Re: Check if file is open in unix

2010-11-23 Thread Arun G Nair
On Tue, Nov 23, 2010 at 5:31 PM, Gopal Karunakar wrote: > Hi All, > >    I want to check whether a particular file (a simple text file) is open > in the UNIX environment. i.e. I want to make sure that its not getting > written into by some other process before my Perl process open it. So that > it

Re: remove duplicate elements from an array

2010-12-18 Thread Arun G Nair
Try: [~]$ perl -MFile::Basename -le '@file_list = qw(aaa ddd bbb/aaa ccc ddd kkk/ddd hhh); $,="," ; print grep { $h{$_} == 1 } grep { ++$h{$_} } map { basename($_) } @file_list;' ccc,hhh [~]$ perl -le '@file_list = qw(aaa ddd bbb/aaa ccc ddd kkk/ddd hhh); $,="," ; print grep { $h{$_} == 1 } grep