Re: Doubt

2015-03-29 Thread John SJ Anderson
Please show exactly what commands you ran and what output you got. In what you're reporting, there's a typo, and it's not clear if that's a copy-paste error or a problem in the actual command. chrs, john. On Mon, Mar 30, 2015 at 1:16 AM, Frank Vino wrote: > When i try to install Alias.pm file

Doubt

2015-03-29 Thread Frank Vino
When i try to install Alias.pm file from environment i was getting an error message as cannot locate alimas.pm file, then i checked in cpan it was showing, In case how to fix this and update the Alias.pm file. Frank

RE: First Mech script: entering a form value (another simple thing no doubt)

2013-03-14 Thread G M
rm value (another simple thing > no doubt) > > On Thu, 14 Mar 2013 16:42:52 + > G M wrote: > > > > > Hi, > > > > Thanks for replying. As far as I understand it will return undef if > > no form is found. The form is there so it should do something I

Re: First Mech script: entering a form value (another simple thing no doubt)

2013-03-14 Thread David Precious
On Thu, 14 Mar 2013 16:42:52 + G M wrote: > > Hi, > > Thanks for replying. As far as I understand it will return undef if > no form is found. The form is there so it should do something I > would've though, I tried adding in that line anyway using 1 to > signify the first (and only) form

RE: First Mech script: entering a form value (another simple thing no doubt)

2013-03-14 Thread G M
heers, G :) > Subject: Re: First Mech script: entering a form value (another simple thing > no doubt) > From: jimsgib...@gmail.com > Date: Thu, 14 Mar 2013 09:27:27 -0700 > To: beginners@perl.org > > > On Mar 14, 2013, at 8:27 AM, G M wrote: > > > > > H

Re: First Mech script: entering a form value (another simple thing no doubt)

2013-03-14 Thread Jim Gibson
On Mar 14, 2013, at 8:27 AM, G M wrote: > > Hi all, > > I managed to get the problem with my script not connecting to the page last > night, turned out my web host wouldn't allow it. Got that sorted. Filling > in the form should be really simple but I'm getting the following error when > t

First Mech script: entering a form value (another simple thing no doubt)

2013-03-14 Thread G M
Hi all, I managed to get the problem with my script not connecting to the page last night, turned out my web host wouldn't allow it. Got that sorted. Filling in the form should be really simple but I'm getting the following error when trying to set the "acOriginAirport" field, I thought it m

Re: XML::Twig Doubt

2012-03-20 Thread Anirban Adhikary
Thanks a lot Rob for your nice help. Best Regards Anirban Adhikary. On Tue, Mar 20, 2012 at 4:38 PM, Rob Dixon wrote: > On 19/03/2012 14:45, Anirban Adhikary wrote: > >> On Mon, Mar 19, 2012 at 7:41 PM, Rob Dixon wrote: >>> XML::Twig uses callbacks to process pieces of the XML that y

Re: XML::Twig Doubt

2012-03-20 Thread Rob Dixon
On 19/03/2012 14:45, Anirban Adhikary wrote: On Mon, Mar 19, 2012 at 7:41 PM, Rob Dixon wrote: XML::Twig uses callbacks to process pieces of the XML that you have defined. In this case you are interested only in the start tag so you can define a "start tag handler". Using $twig->purge empties

Re: XML::Twig Doubt

2012-03-20 Thread Rob Dixon
On 19/03/2012 15:12, Anirban Adhikary wrote: Hi, When I am trying to print the value against the tag ALPHA it is not prints anything,though it is not showing any warnings. use strict; use warnings; use XML::Twig; my $twig = XML::Twig->new(start_tag_handlers => { BSC => \&on_BSC }); sub

Re: XML::Twig Doubt

2012-03-19 Thread Anirban Adhikary
Hi List, When I have changed the method from my $twig = XML::Twig->new(start_tag_ handlers => { BSC => \&on_BSC }); to my $twig = XML::Twig->new(TwigHandlers => { BSC => \&on_BSC }); I am able to print the value against the ALPHA tag. Thanks to you for your support. Best Regards Anirban A

Re: XML::Twig Doubt

2012-03-19 Thread Anirban Adhikary
Hi, When I am trying to print the value against the tag ALPHA it is not prints anything,though it is not showing any warnings. use strict; use warnings; use XML::Twig; my $twig = XML::Twig->new(start_tag_handlers => { BSC => \&on_BSC }); sub on_BSC { my($twig, $bsc)= @_; print $bsc->id, "\

Re: XML::Twig Doubt

2012-03-19 Thread Anirban Adhikary
Hi Rob, Thanks for your support.The code does exactly what I want . Can you please suggest me a tutorials with good examples on XML::Twig. Another thing can you please explain me this line in the code my($twig, $bsc)= @_; Best Regards Anirban Adhikary. On Mon, Mar 19, 2012 at 7:4

Re: XML::Twig Doubt

2012-03-19 Thread Rob Dixon
On 19/03/2012 13:10, Anirban Adhikary wrote: Hi List, I have a XML file which looks like as follows 10 1,3,4,7 12,16,21 2,3,3 1,3,6,8 12,17,25 50 AMI_BRANLY_B_1 . . Now my qu

XML::Twig Doubt

2012-03-19 Thread Anirban Adhikary
Hi List, I have a XML file which looks like as follows 10 1,3,4,7 12,16,21 2,3,3 1,3,6,8 12,17,25 50 AMI_BRANLY_B_1 . . Now my question is how to extract the value of id in a variable us

Re: doubt in substring

2011-01-15 Thread Kenneth Wolcott
On Sat, Jan 15, 2011 at 03:20, Dr.Ruud wrote: > On 2011-01-15 08:52, Emeka wrote: > >> rmicro@RMICRO-PC C:\Program Files\xampp >> # perl -le '$str =  "the cat sat on the mat";print substr( $str, 4, -4 )' >> Can't find string terminator "'" anywhere before EOF at -e line 1. > > On Windows it should

Re: doubt in substring

2011-01-15 Thread Dr.Ruud
On 2011-01-15 08:52, Emeka wrote: rmicro@RMICRO-PC C:\Program Files\xampp # perl -le '$str = "the cat sat on the mat";print substr( $str, 4, -4 )' Can't find string terminator "'" anywhere before EOF at -e line 1. On Windows it should probably look like: # perl -wle "$s=q{abc def ghi jkl};pr

Re: doubt in substring

2011-01-15 Thread Emeka
*If I were beginning with Perl, I certainly would not practise in the console but get an editor, such as SciTE* Yes, I am. On Sat, Jan 15, 2011 at 3:04 PM, John Delacour wrote: > On 15 January 2011 07:52, Emeka wrote: > > > # perl -le '$str = "the cat sat on the mat";print substr( $str, 4, -4

Re: doubt in substring

2011-01-15 Thread John Delacour
On 15 January 2011 07:52, Emeka wrote: > # perl -le '$str = "the cat sat on the mat";print substr( $str, 4, -4 )' > Can't find string terminator "'" anywhere before EOF at -e line 1. > > rmicro@RMICRO-PC C:\Program Files\xampp > # > > It failed to work for me. Why? Because you can't use single

Re: doubt in substring

2011-01-14 Thread Emeka
Setting environment for using XAMPP for Windows. rmicro@RMICRO-PC C:\Program Files\xampp # perl -le '$str = "the cat sat on the mat";print substr( $str, 4, -4 )' Can't find string terminator "'" anywhere before EOF at -e line 1. rmicro@RMICRO-PC C:\Program Files\xampp # It failed to work for me

Re: doubt in substring

2011-01-13 Thread Shawn H Corey
On 11-01-12 11:27 PM, Sunita Rani Pradhan wrote: I have a string as; $str = "the cat sat on the mat" . How the following command works substr($str , 4, -4) on the string ? What should be the output? TITS (Try It To See) perl -le '$str = "the cat sat on the mat";print substr(

Re: doubt in substring

2011-01-12 Thread C.DeRykus
On Jan 12, 8:27 pm, sunita.prad...@altair.com ("Sunita Rani Pradhan") wrote: > Hi All > >             I have a string as; $str =  "the cat sat on the mat" . > > How the following command works substr($str , 4, -4)  on the string ? > What should be the output? > See: perldoc -f substr Check the do

Re: doubt in substring

2011-01-12 Thread ashwin ts
the output will be cat sat on the all the characters in the string $str except four characters from the left and right will be displayed... Regards Ashwin Thayyullathil Surendran On Thu, Jan 13, 2011 at 9:57 AM, Sunita Rani Pradhan < sunita.prad...@altair.com> wrote: > Hi All > > > >

doubt in substring

2011-01-12 Thread Sunita Rani Pradhan
Hi All I have a string as; $str = "the cat sat on the mat" . How the following command works substr($str , 4, -4) on the string ? What should be the output? Thanks Sunita

Re: Net::SNMP OID doubt

2009-11-18 Thread Venkat Saranathan
; Is it correct ?. Can i replace the string with this decimal values ?. > > Shammi > > > > - Original Message > > From: Shameem Ahamed > > To: beginners@perl.org > > Sent: Wed, November 18, 2009 6:36:42 PM > > Subject: Net::SNMP OID doubt > >

Re: Net::SNMP OID doubt

2009-11-18 Thread Shameem Ahamed
Hi, Thanks for the replies. I asked in this list, because initially i thought it was a problem with the Net::SNMP module. Sorry for the same. I have one more doubt. Is there any tool, which i can use for automatically converting this strings to OIDs. Regards, Shammi - Original Message

RE: Net::SNMP OID doubt

2009-11-18 Thread Hack, Gabi (ext)
> From: Shameem Ahamed [mailto:shameem.aha...@yahoo.com] > > SNMPv2-SMI::enterprise i can use the 1.3.6.1.4.1 > > Is it correct ?. Can i replace the string with this decimal values ?. > It's the wrong list for your question, but yes, you can substitute all names with the corresponding OIDs (

Re: Net::SNMP OID doubt

2009-11-18 Thread Shameem Ahamed
November 18, 2009 6:36:42 PM > Subject: Net::SNMP OID doubt > > Hi All, > > I am trying to create a script to get the logical disk status using Net::SNMP. > > My snmpget query is > > snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 > SNMPv2-SMI::enterpri

Net::SNMP OID doubt

2009-11-18 Thread Shameem Ahamed
Hi All, I am trying to create a script to get the logical disk status using Net::SNMP. My snmpget query is snmpget -v2c -t 1 -r 9 -m ALL -v 1 -c public localhost:161 SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In this , OID part is SNMPv2-SMI::enterprises.1714.1.1.2.1.6.1 In the Net::SNMP get_re

RE: Doubt in Spreadsheet::ParseExcel

2008-10-29 Thread Stewart Anderson
_ From: anitha victor [mailto:[EMAIL PROTECTED] Sent: 29 October 2008 08:54 To: beginners@perl.org Subject: Doubt in Spreadsheet::ParseExcel Hi Team, I want a code snippet for retrieving the content in xcel sheet in a variable. Thanks in advance The CPAN documentation for

Doubt in Spreadsheet::ParseExcel

2008-10-29 Thread anitha victor
Hi Team, I want a code snippet for retrieving the content in xcel sheet in a variable. Thanks in advance[?] --- Anitha victor <<328.png>>

Re: doubt in code

2008-08-22 Thread Dr.Ruud
"Irfan J Sayed (isayed)" schreef: Irfan, trim your postings. Cut out any piece of text that is no longer relevant. You quoted all the nonsense that Stewart Anderson thinks he needs to include. Clean up your act. > Agree, but where is the file name?? > $server will just store the server name rig

RE: doubt in code

2008-08-21 Thread Irfan J Sayed (isayed)
Hi, Can somebody please help. Regards Irfan. -Original Message- From: Irfan J Sayed (isayed) Sent: Friday, August 22, 2008 11:12 AM To: 'Stewart Anderson'; beginners@perl.org Subject: RE: doubt in code Agree, but where is the file name?? $server will just store the server

RE: doubt in code

2008-08-21 Thread Irfan J Sayed (isayed)
Agree, but where is the file name?? $server will just store the server name right? Regards Irf -Original Message- From: Stewart Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2008 8:25 PM To: beginners@perl.org Cc: Stewart Anderson Subject: RE: doubt in code

RE: doubt in code

2008-08-21 Thread Stewart Anderson
> -Original Message- > From: Irfan J Sayed (isayed) [mailto:[EMAIL PROTECTED] > Sent: 21 August 2008 15:49 > To: beginners@perl.org > Subject: doubt in code > > Hi All, > > I have sample code like this: > > #!/usr/bin/perl > > # file: lgetr.pl

doubt in code

2008-08-21 Thread Irfan J Sayed (isayed)
Hi All, I have sample code like this: #!/usr/bin/perl # file: lgetr.pl # Figure 1.2: Read the first line from a remote server use IO::Socket; my $server = shift; my $fh = IO::Socket::INET->new($server); my $line = <$fh>; print $line; As per comment it says that, it prints the first line

RE: doubt

2008-08-20 Thread Mr. Shawn H. Corey
On Wed, 2008-08-20 at 19:42 +0530, Irfan J Sayed (isayed) wrote: > Thank you very much. Really helped. > Regards > Irfan. You can look up: perldoc -f shift pelrdoc perlvar (and search for "@ARGV') -- Just my 0.0002 million dollars worth, Shawn "Where there's duct tape, there's hope."

RE: doubt

2008-08-20 Thread Irfan J Sayed (isayed)
Thank you very much. Really helped. Regards Irfan. -Original Message- From: Mr. Shawn H. Corey [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2008 7:35 PM To: Irfan J Sayed (isayed) Cc: beginners@perl.org Subject: Re: doubt On Wed, 2008-08-20 at 19:03 +0530, Irfan J Sayed

Re: doubt

2008-08-20 Thread Mr. Shawn H. Corey
On Wed, 2008-08-20 at 19:03 +0530, Irfan J Sayed (isayed) wrote: > Hi All, > > Can you please tell me what is the value of $file. When i execute this > script . it says "Can't open : No such file or directory" > > Please suggect. > > Regards > > Irf. > > #!/usr/bin/perl > > # file: count_line

RE: doubt

2008-08-20 Thread Irfan J Sayed (isayed)
@perl.org Subject: RE: doubt Im going with empty string or null. -Original Message- From: Irfan J Sayed (isayed) [mailto:[EMAIL PROTECTED] Sent: 20 August 2008 14:34 To: beginners@perl.org Subject: doubt Hi All, Can you please tell me what is the value of $file. When i execute this script . it

RE: doubt

2008-08-20 Thread Andrew Curry
Im going with empty string or null. -Original Message- From: Irfan J Sayed (isayed) [mailto:[EMAIL PROTECTED] Sent: 20 August 2008 14:34 To: beginners@perl.org Subject: doubt Hi All, Can you please tell me what is the value of $file. When i execute this script . it says "Can&#

doubt

2008-08-20 Thread Irfan J Sayed (isayed)
Hi All, Can you please tell me what is the value of $file. When i execute this script . it says "Can't open : No such file or directory" Please suggect. Regards Irf. #!/usr/bin/perl # file: count_lines.pl # Figure 1.4: Count the lines of a file use strict; use IO::File; my $file = shift;

RE: Doubt in Perl CGI

2008-07-16 Thread Thomas Bätzler
Prabu Ayyappan <[EMAIL PROTECTED]> asked: > My Perl CGI script is working fine when i run the code in the > command prompt as "perl myscript.cgi" . However when i run > the same code in the browser(Internet Explorer), It is not > working properly. Have you tried running the script as the user i

Doubt in Perl CGI

2008-07-16 Thread Prabu Ayyappan
Hi All, My Perl CGI script is working fine when i run the code in the command prompt as "perl myscript.cgi" . However when i run the same code in the browser(Internet Explorer), It is not working properly. I am using "YAML::Syck" module in my CGI Script to parse the YAML file. So i use this mo

doubt in my web spider

2008-06-17 Thread Manasi Bopardikar
http://sac.edu/Schedule/search/results.asp?semester=Fall2008 &department=Accounting&AddTitle=-+Browse&RtnURL=%2Fschedule%2Fbro

Re: Doubt on Pattern Matching

2007-08-28 Thread Dharshana Eswaran
On 8/28/07, Chas Owens <[EMAIL PROTECTED]> wrote: > > On 8/28/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: > > When i write the condition > > my @m = $fullStruct =~ /$DLstatement/g; > > and try printing the array, > > print "\nThe array is @m\n"; > > It prints nothing This is th

Re: Doubt on Pattern Matching

2007-08-28 Thread Chas Owens
On 8/28/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: > When i write the condition > my @m = $fullStruct =~ /$DLstatement/g; > and try printing the array, > print "\nThe array is @m\n"; > It prints nothing This is the problem... > > Thanks and Regards, > Dharshana snip > > That i

Re: Doubt on Pattern Matching

2007-08-28 Thread Rob Dixon
Dharshana Eswaran wrote: On 8/28/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 8/28/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: I have a pattern, which reads as shown below: my $comment= qr{\s* (?:/\* .*? \*/ \s*)*}xs; my $identifier = qr{ [A-Za-z_]\w* }xs; my $statement = qr{

Re: Doubt on Pattern Matching

2007-08-27 Thread Dharshana Eswaran
When i write the condition my @m = $fullStruct =~ /$DLstatement/g; and try printing the array, print "\nThe array is @m\n"; It prints nothing This is the problem... Thanks and Regards, Dharshana On 8/28/07, Chas Owens <[EMAIL PROTECTED]> wrote: > > On 8/28/07, Dharshana Eswaran <[E

Re: Doubt on Pattern Matching

2007-08-27 Thread Chas Owens
On 8/28/07, Dharshana Eswaran <[EMAIL PROTECTED]> wrote: > Hi All, > > I have a pattern, which reads as shown below: > > my $comment= qr{\s* (?:/\* .*? \*/ \s*)*}xs; > my $identifier = qr{ [A-Za-z_]\w* }xs; > my $statement = qr{ >\s* >($identifier) >

Doubt on Pattern Matching

2007-08-27 Thread Dharshana Eswaran
Hi All, I have a pattern, which reads as shown below: my $comment= qr{\s* (?:/\* .*? \*/ \s*)*}xs; my $identifier = qr{ [A-Za-z_]\w* }xs; my $statement = qr{ \s* ($identifier) \s+ ($identifier) \s*

doubt on time structures

2006-12-20 Thread pradeep reddy
Hello, I used the follwoing code: struct rusage startusage, stopusage; getrusage(RUSAGE_SELF, &startusage); getrusage(RUSAGE_SELF, &stopusage); cpu_delta_user=((stopusage.ru_utime.tv_sec*100) + stopusage.ru_utime.tv_usec) -(startUsage.ru_utime.tv_sec*1

Re: doubt in quote-like operators

2006-08-07 Thread anand kumar
Hi, Thanks alot for the detailed explanation. Regards Anand Kumar Prabu <[EMAIL PROTECTED]> wrote: anand kumar wrote: > hi all, > > I could not understand clearly the functions > qw(),qq(),qr(),qx(),q(),quotemeta(). I > have read the explanation for these functions in the perl d

Re: doubt in quote-like operators

2006-08-06 Thread Prabu
anand kumar wrote: hi all, I could not understand clearly the functions qw(),qq(),qr(),qx(),q(),quotemeta(). I have read the explanation for these functions in the perl documentation but i could not get idea of where exactly we can use these functions. So please send some other lin

doubt in quote-like operators

2006-08-06 Thread anand kumar
hi all, I could not understand clearly the functions qw(),qq(),qr(),qx(),q(),quotemeta(). I have read the explanation for these functions in the perl documentation but i could not get idea of where exactly we can use these functions. So please send some other links or examples for t

Re: doubt..

2006-07-19 Thread Prasad
Hi Ramesh, Yes. Here they have used '|' is a delimiter. Take a look at 'perlre'. ""Ankam, Ramesh Babu"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] .. Hi, Can any one please tell me what this pattern means " s|.*/|| ". Is it that '|' represents '/'. Please reply me soon.

Re: doubt..

2006-07-19 Thread Prasad
Ramesh, Here they have used '|' as a delimiter because already they are using the metacharacter '/' in the find pattern. In order to avoid backslashing the metacharacter '/' , they have used '|' as delimiter. Regards, Prasad ""Ankam, Ramesh Babu"" <[EMAIL PROTECTED]> wrote in message news:[EMAI

Re: doubt..

2006-07-19 Thread Ranish George
Ankam, Ramesh Babu wrote: Hi, Can any one please tell me what this pattern means " s|.*/|| ". Is it that '|' represents '/'. Please reply me soon. Thanks in advance --- Ramesh Hello Ramesh, In your example "|" is used as the delimiter instead of the g

Re: doubt..

2006-07-19 Thread Xavier Noria
On Jul 19, 2006, at 13:59, Ankam, Ramesh Babu wrote: Can any one please tell me what this pattern means " s|.*/|| ". Assuming there are no newlines in the string, that s/// means remove everything up to, and including, the last slash. It's a typical regexp for getting the basename of

doubt..

2006-07-19 Thread Ankam, Ramesh Babu
Hi, Can any one please tell me what this pattern means " s|.*/|| ". Is it that '|' represents '/'. Please reply me soon. Thanks in advance --- Ramesh

Re: split doubt

2006-05-25 Thread John W. Krahn
Saurabh Singhvi wrote: > Hi Hello, > the format of split() defines that one > can split a string into a fixed number > of specifies strings. for eg > > ($login, $passwd, $remainder) = split(/:/, $_, 3); > > Now, the thing is, it splits on first 3 parts. > Can i do the reverse?? as in instead of

Re: split doubt

2006-05-25 Thread Mr. Shawn H. Corey
On Thu, 2006-25-05 at 13:17 -0700, Joshua Colson wrote: > On Thu, 2006-05-25 at 19:38 +, Saurabh Singhvi wrote: > > Hi > > > > the format of split() defines that one > > can split a string into a fixed number > > of specifies strings. for eg > > > > ($login, $passwd, $remainder) = split(/:/,

Re: split doubt

2006-05-25 Thread Joshua Colson
On Thu, 2006-05-25 at 19:38 +, Saurabh Singhvi wrote: > Hi > > the format of split() defines that one > can split a string into a fixed number > of specifies strings. for eg > > ($login, $passwd, $remainder) = split(/:/, $_, 3); > > Now, the thing is, it splits on first 3 parts. > Can i do t

Re: split doubt

2006-05-25 Thread Chris Charley
- Original Message - From: ""Saurabh Singhvi"" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "Perl FAq" Sent: Thursday, May 25, 2006 3:38 PM Subject: split doubt Hi the format of split() defines that one can split a string into a fixed

split doubt

2006-05-25 Thread Saurabh Singhvi
Hi the format of split() defines that one can split a string into a fixed number of specifies strings. for eg ($login, $passwd, $remainder) = split(/:/, $_, 3); Now, the thing is, it splits on first 3 parts. Can i do the reverse?? as in instead of the output being the first 3 parts of split, th

Re: forking doubt

2006-03-14 Thread Jeff Pang
It's not so easy to do that. you should use the signal to communicate between childs and parent. -Original Message- >From: Saurabh Singhvi <[EMAIL PROTECTED]> >Sent: Mar 14, 2006 3:57 AM >To: Perl FAq >Subject: forking doubt > >Hi all, > > > my

Re: forking doubt

2006-03-14 Thread Paul Johnson
On Tue, Mar 14, 2006 at 08:57:03AM +, Saurabh Singhvi wrote: >my $child = fork (); > >unless ($child) { >sleep 5; >print "child\n"; >} > >print "parent\n" if $child; >print "parent2\n" if $child; > > > the above code prints the parent lines followed by t

forking doubt

2006-03-14 Thread Saurabh Singhvi
Hi all, my $child = fork (); unless ($child) { sleep 5; print "child\n"; } print "parent\n" if $child; print "parent2\n" if $child; the above code prints the parent lines followed by the child. Now what i want to do is print the parent line1 and then the child fol

Re: Doubt

2005-12-11 Thread Ricardo SIGNES
* anand kumar <[EMAIL PROTECTED]> [2005-12-11T22:38:00] > I am new to perl .i have a doubt in analysing the following regex. >(my $book = $ref_string) =~ s/\s*(\d+(?::\d+(?:-\d+(?::\d+)?)?)?)\Z//; > > here i want to know the meaning of '?:' Nor

Doubt

2005-12-11 Thread anand kumar
Hi I am new to perl .i have a doubt in analysing the following regex. (my $book = $ref_string) =~ s/\s*(\d+(?::\d+(?:-\d+(?::\d+)?)?)?)\Z//; here i want to know the meaning of '?:' thanks in advance Anand --

Doubt

2005-12-11 Thread anand kumar
Hi I am new to perl .i have a doubt in analysing the following regex. (my $book = $ref_string) =~ s/\s*(\d+(?::\d+(?:-\d+(?::\d+)?)?)?)\Z//; here i want to know the meaning of '?:' thanks in advance Anand --

Re: doubt with hash

2005-01-13 Thread Tor Hildrum
On Fri, 14 Jan 2005 12:09:03 +0530, Anish Kumar K. <[EMAIL PROTECTED]> wrote: > Hi All > > I have a hash say. %browserType in which assume there are values... > > %browserType=( > "IE"=>2, > "NETSCAPE"=>3, > "FIREFOX"=>5 > ); > > I need to calculate one morething say percentage utilisation for e

doubt with hash

2005-01-13 Thread Anish Kumar K.
Hi All I have a hash say. %browserType in which assume there are values... %browserType=( "IE"=>2, "NETSCAPE"=>3, "FIREFOX"=>5 ); I need to calculate one morething say percentage utilisation for each browser.. ie..If IE is 2 = the percentage is calculated as (2/(2+3+5))*100 NETSCAPE=(3/(

Addition to doubt: File Upload using CGI

2004-12-01 Thread Manas Kulkarni
Hi, I made a slight mistake in my previous post. I am not getting the key value, I am getting the name of the file instead(not the absolute path). Thanks, Manas. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How can I do to concatenate 2 strings?, was Re: Doubt

2004-10-04 Thread Chris Devers
Please use a constructive subject line. On Mon, 4 Oct 2004, Sprogis, Rubens (V-Emeritis) wrote: How can I do to concatenate 2 strings? There are many ways to do it. Here's one of them: $foo = $a . $b; This should be introductory material in any beginner's Perl book. -- Chris Devers -- To unsub

Re: Doubt

2004-10-04 Thread Errin Larsen
On Mon, 4 Oct 2004 18:33:51 -0300, Sprogis, Rubens (V-Emeritis) <[EMAIL PROTECTED]> wrote: > How can I do to concatenate 2 strings? > > Hi! Glad you are trying Perl! Welcome to the group! Let me offer you some advice. This mailing list works best when you write some of your own code, try it,

Doubt

2004-10-04 Thread Sprogis, Rubens \(V-Emeritis\)
How can I do to concatenate 2 strings? *** Esta mensagem pode conter informacoes confidenciais e privadas. A nao ser que voce seja o destinatario (ou autorizado pelo destinatario para re

Re: doubt in Definition of sub routine.

2004-08-06 Thread Jeff 'japhy' Pinyan
On Aug 5, Jose Alves de Castro said: >sub trim($), for instance, means that trim will work on a scalar. It means that trim() expects ONE argument and will enforce scalar context on it. trim($foo) and trim(@bar) both work. >This is useful to, instead of something such as > >trim($var) > >use som

Re: doubt in Definition of sub routine.

2004-08-05 Thread Jose Alves de Castro
On Thu, 2004-08-05 at 11:07, [EMAIL PROTECTED] wrote: > Hi All, Hi > I am using code written by some one else. I didn't understand the difference > between these subroutines, the way they were defined. > > 1. sub addToLog { Some code } Any specific reason where we should > not use braces

Re: doubt in Definition of sub routine.

2004-08-05 Thread Gunnar Hjalmarsson
Anand V wrote: I am using code written by some one else. I didn't understand the difference between these subroutines, the way they were defined. 1. sub addToLog { Some code }Any specific reason where we should not use braces ?? 2. sub displayEnv( ) { " }Any specific reason why

doubt in Definition of sub routine.

2004-08-05 Thread Anand . V
Hi All, I am using code written by some one else. I didn't understand the difference between these subroutines, the way they were defined. 1. sub addToLog { Some code }Any specific reason where we should not use braces ?? 2. sub displayEnv( ) { " }Any specific reason why

[Doubt] : Validate Printer Port

2004-06-23 Thread suresh.pasupula
Hi, How to validate the given printer port? I want to know if it is a TCP/IP or local port. If it is a TCP/IP Port then I wan to validate if it exists (Raw port 9100). Also I want to validate the format of IP-Address. Could anyone let me know how can I achieve this? Thanks and Regards

RE: [Doubt]: Retrieve System Info like Which OS and type

2004-06-22 Thread Tim Johnson
Check out the Win32::TieRegistry module. It's pretty easy to get that info from the Registry. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 11:32 AM To: [EMAIL PROTECTED] Subject: [Doubt]: Retrieve System Info like Which OS and

[Doubt]: Retrieve System Info like Which OS and type

2004-06-22 Thread suresh.pasupula
Hi, I need to retrieve the following system Info from the current system. 1. Operating System 2. Localization 3. 32 Bit or 64 Bit I searched but could get only this info "$^O". This gives only MSWINNT but nut much info. Could anyone let me know where can I such info? Thanks and Rega

Re: a doubt

2003-12-15 Thread Ajey
Too good. thanks John. On Mon, 15 Dec 2003, John W. Krahn wrote: > Ajey wrote: > > > > Hi, > > Hello, > > > How can i catch the difference in 2 files on a perl stmt? > > I want to do somethign like, > > if (there is some diff in 2 files) > > do something1 > > else > > do something2 > > Both fi

Re: a doubt

2003-12-15 Thread John W. Krahn
Ajey wrote: > > Hi, Hello, > How can i catch the difference in 2 files on a perl stmt? > I want to do somethign like, > if (there is some diff in 2 files) > do something1 > else > do something2 > Both files are simple text files use File::Compare; if ( compare( 'file1', 'file2' ) == 0 ) {

a doubt

2003-12-15 Thread Ajey
Hi, How can i catch the difference in 2 files on a perl stmt? I want to do somethign like, if (there is some diff in 2 files) do something1 else do something2 Both files are simple text files TIA -Ajey -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: some doubt

2003-12-12 Thread Jim Burnett
Yes, do a search on google. I did this. -Jim - Original Message - From: "Ajey Kulkarni" <[EMAIL PROTECTED]> To: "drieux" <[EMAIL PROTECTED]> Cc: "Perl Perl" <[EMAIL PROTECTED]> Sent: Saturday, December 13, 2003 6:20 AM Subject: some doubt

Some Doubt

2003-12-12 Thread Rob Dixon
Ajey Kulkarni wrote: > > How can i rename a file and check the size of file using perl? > Also is there a way to call unix commands/system calls from perl?(Say i > want to fstat() on a file and grab the stat struct results). Is there any > way?? You can grab the size of a file using the -s operato

File Operations and System Calls in Perl (WAS: some doubt)

2003-12-12 Thread Tim Johnson
rldoc -f rename That should get you started -Original Message- From: Ajey Kulkarni [mailto:[EMAIL PROTECTED] Sent: Saturday, December 13, 2003 3:21 AM To: drieux Cc: Perl Perl Subject: some doubt hi, How can i rename a file and check the size of file using perl? Also is there a way to

Re: some doubt

2003-12-12 Thread Rob Dixon
Ajey Kulkarni wrote: [some stuff] Before this gets lost as a subthread I'm reposting it. I hope I catch most potential responses. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Messing with Files [Was: some doubt]

2003-12-12 Thread Casey West
It was Saturday, December 13, 2003 when Ajey Kulkarni took the soap box, saying: : hi, : How can i rename a file and check the size of file using perl? Use the rename() function. rename( $oldfile, $newfile ); perldoc -f rename() Use the file test operators, particularly -s. my $size = -s

some doubt

2003-12-12 Thread Ajey Kulkarni
hi, How can i rename a file and check the size of file using perl? Also is there a way to call unix commands/system calls from perl?(Say i want to fstat() on a file and grab the stat struct results). Is there any way?? TIA -Ajey -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: 1 doubt.

2003-12-11 Thread Yannick Warnier
Le jeu 11/12/2003 à 10:27, Ajey Kulkarni a écrit : > perl t.pl > Name "main::FH" used only once: possible typo at t.pl line 6. > > cat t.pl > > #!/usr/bin/perl > > use strict; > use warnings; > > open FH, "out.dat"; > > > Why am i getting this warning? When i remove the warnings,this goes off

Re: 1 doubt.

2003-12-10 Thread R. Joseph Newton
Ajey Kulkarni wrote: > perl t.pl > Name "main::FH" used only once: possible typo at t.pl line 6. > > cat t.pl > > #!/usr/bin/perl > > use strict; > use warnings; > > open FH, "out.dat"; > > Why am i getting this warning? Because the compiler thinks that you are probably doing something pointless.

RE: 2nd doubt.

2003-12-10 Thread Paul Kraus
Not to be a pest but try and be more descriptive in your subject. It saves everyone time in trying to decide on what they can help you with. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

2nd doubt.

2003-12-10 Thread Ajey Kulkarni
HI again. I'm tryign to modify the .procmailrc file Initially the file looks liek this -- :0: * ^X-Spam-Status: Yes | dmail +mail/junk :0: * ^X-Spam-Status: Yes | dmail +mail/junk :0: * ^X-Spam-Status: Yes | dmail +mail/junk :0: * ^X-Spam-Status: Yes | dmail +mail/junk :0: *

RE: 1 doubt.

2003-12-10 Thread Ned Cunningham
EMAIL PROTECTED] Sent: Thursday, December 11, 2003 4:28 AM To: [EMAIL PROTECTED] Subject: 1 doubt. perl t.pl Name "main::FH" used only once: possible typo at t.pl line 6.

Re: 1 doubt.

2003-12-10 Thread perl-beginners
On Thu, Dec 11, 2003 at 09:27:48AM +, Ajey Kulkarni wrote: > perl t.pl > Name "main::FH" used only once: possible typo at t.pl line 6. You opened a file, but you do not read from the file. Just opened it. This doesn't make much sense. So you get a warning. > cat t.pl > > #!/usr/bin/perl > >

Re: 1 doubt.

2003-12-10 Thread James Edward Gray II
On Dec 11, 2003, at 3:27 AM, Ajey Kulkarni wrote: perl t.pl Name "main::FH" used only once: possible typo at t.pl line 6. cat t.pl #!/usr/bin/perl use strict; use warnings; open FH, "out.dat"; Why am i getting this warning? When i remove the warnings,this goes off? Is there any problem if i no

  1   2   >