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

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 --

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

Doubt

2003-12-01 Thread Na
I am programmer and work with language VB. But I have some doubts about Perl and in the internet I did not find solutions. I like to know if is possible to use dll's I writed (that access a usb scanner) in perl. If I could, how can i referenciate it (in vbscript we use the CreateObject method)?

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;

Doubt

2001-08-30 Thread Rajanikanth Dandamudi
Hello, My doubt is "How do you identify whether a perl scalar variable contains a numeric value or alphanumeric string?" . I had gone through theexplanation available atthe URL http://www.cpan.org/doc/FMTEYEWTK/is_numeric.html , bu

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

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

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

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

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: 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

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 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 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.

Stupid doubt!

2002-10-25 Thread Cleiton L. Siqueira
Dear, I've tried to add two variables, but the result isn't right. Because when Perl add the both it removes the decimal numbers from the each variable. How can I add these variables in perl? Thanks, Cleiton L. Siqueira Colégio Monjolo [EMAIL PROTECTED] (0xx45) 520-1915 Esta mensag

some doubt!

2002-11-12 Thread Pravesh Biyani
hi i have a prog which should create a file according to the date and name it "$date.log" and write something depending upon other things in it! Here is the code.. which refuses to work any clues.. ? TIA pravesh -- #!/usr/bin/perl -w

Re: Doubt

2003-12-01 Thread drieux
On Dec 1, 2003, at 6:19 AM, Na wrote: I am programmer and work with language VB. But I have some doubts about Perl and in the internet I did not find solutions. I like to know if is possible to use dll's I writed (that access a usb scanner) in perl. If I could, how can i referenciate it (in vbscr

1 doubt.

2003-12-10 Thread Ajey Kulkarni
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 not include "use warnings" line? Quick reply is hi

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: *

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

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

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

regex doubt

2003-04-12 Thread km
Hi all, i have a set if keywords which i have to search for in the lines beginning with character 'A' in the "file". snippet follows - #!/usr/bin/perl -w $keywords = "hello|world|all|chipset"; open FH,"file"; while() { print if(/^A/ && /(?:$keyword)/g); } close FH; is that correct or any other

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&#

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 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)
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: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

2001-08-30 Thread John Edwards
:35 To: '[EMAIL PROTECTED]' Subject: Doubt Hello, My doubt is "How do you identify whether a perl scalar variable contains a numeric value or alphanumeric string?" . I had gone through theexplanation available atthe URL http://www.cp

RE: Doubt

2001-08-30 Thread John Edwards
Sorry, hit the send button early :) Ignore that mail... -Original Message- From: John Edwards Sent: 30 August 2001 16:52 To: 'Rajanikanth Dandamudi'; '[EMAIL PROTECTED]' Subject: RE: Doubt It doesn't matter to Perl if you store alphanumerics or numbers or

Re: Doubt

2001-08-30 Thread Brett W. McCoy
On Thu, 30 Aug 2001, Rajanikanth Dandamudi wrote: >My doubt is "How do you identify whether a perl scalar variable >contains a numeric value or alphanumeric string?" . I had gone >through theexplanation available atthe URL >

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 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

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

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/(

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

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: 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

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 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 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: Stupid doubt!

2002-10-25 Thread Robert Citek
Hello Cleiton, At 01:32 PM 10/25/2002 -0700, Cleiton L. Siqueira wrote: >I've tried to add two variables, but the result isn't right. >Because when Perl add the both it removes the decimal numbers from the each variable. >How can I add these variables in perl? Does this one-liner work on your sy

Re: Stupid doubt!

2002-10-25 Thread Cleiton L. Siqueira
Dear, Thanks for your help!!! I was making a mistake with my source file. My file has numbers like this 2,25. Perl uses "." and not "," to decimal numbers. I changed the "." to "," in the file and now it's working well. Sorry, for my stupid question!!! And Thanks for your attention and answ

RE: Stupid doubt!

2002-10-26 Thread Wagner, David --- Senior Programmer Analyst --- WGO
, $aa, $bb, $cc; Output: 1.0101 2.20202 3.21212 Wags ;) -Original Message- From: Cleiton L. Siqueira [mailto:cleiton@;colegiomonjolo.com.br] Sent: None To: [EMAIL PROTECTED] Subject: Stupid doubt! Dear, I've tried to add two variables, but the result isn't right. Because wh

Re: some doubt!

2002-11-12 Thread Frank Wiles
.--[ Pravesh Biyani wrote (2002/11/12 at 17:49:14) ]-- | | hi | i have a prog which should create a file according to the date and name | it "$date.log" and write something depending upon other things in it! | Here is the code.. which refuses to work | | any clues.. ? |

Re: some doubt!

2002-11-12 Thread Paul
--- Pravesh Biyani <[EMAIL PROTECTED]> wrote: > i have a prog which should create a file according to the date > and name it "$date.log" and write something depending upon > other things in it! Here is the code.. which refuses to work > any clues.. ? > $prefix_file = ` date '+%x' ` ; accordin

Re: some doubt!

2002-11-12 Thread Paul
> | $probefile = " | $OUTFILE = ">>$probe_logfile"; > | open(probefile) or die("ERROR: $! \n"); > | open(OUTFILE) or die ("ERRROR :$! \n"); > You're not using open() correctly. You need to have something > along the lines of: > open(PROBE, $profile); > open(OUT, $OUTFILE); Actu

Re: some doubt!

2002-11-12 Thread Paul
By the way, always check your return code. My suggestion would be to use open OUTFILE, $OUTFILE or die $!; --- Paul <[EMAIL PROTECTED]> wrote: > > | $probefile = " > | $OUTFILE = ">>$probe_logfile"; > > | open(probefile) or die("ERROR: $! \n"); > > | open(OUTFILE) or die ("ERRROR :$! \n

Re: some doubt!

2002-11-12 Thread Pravesh Biyani
thanks verymuch.. the prgm working fine now!! cheers pravesh Frank Wiles wrote: .--[ Pravesh Biyani wrote (2002/11/12 at 17:49:14) ]-- | | hi | i have a prog which should create a file according to the date and name | it "$date.log" and write something depending upon other things

Re: some doubt!

2002-11-12 Thread John W. Krahn
Pravesh Biyani wrote: > > hi Hello, > i have a prog which should create a file according to the date and name > it "$date.log" and write something depending upon other things in it! > Here is the code.. which refuses to work > > -- >

doubt in mysql

2003-01-17 Thread kasi ramanathen
i'm to update a pearl programme using mysql, i know only less of the latter. i come across a statement $ver=$dbh->prepare(SELECT jobid, pid from jobs where exectime

RE: 1 doubt.

2003-12-10 Thread Stephen Hardisty
> Name "main::FH" used only once: possible typo at t.pl line 6. It's because it's used only once ;o) . If you just declare something (variable, filehandle etc.) but don't use it, something's probably wrong with your code (such as a typo). If you try reading or writing using that filehandle the e

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

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 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: 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]

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: 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: 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: 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

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 ) {

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: regex doubt

2003-04-12 Thread Rob Dixon
[EMAIL PROTECTED] wrote: > Hi all, > > i have a set if keywords which i have to search for in the lines > beginning with character 'A' in the "file". > snippet follows - > > #!/usr/bin/perl -w > $keywords = "hello|world|all|chipset"; > open FH,"file"; > while() > { > print if(/^A/ && /(?:$keyword)

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

Doubt in understanding

2001-06-08 Thread Rajanikanth Dandamudi
Hello, I had a problem understanding what the expression ${1+"$@"} mean? can someone help me in understanding this? -- Thanks and Regards, D.Rajanikanth

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 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 > > > >

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-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-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-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-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 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 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: 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

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 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 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-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-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 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: 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

Re: doubt in mysql

2003-01-17 Thread Jenda Krynicky
From: kasi ramanathen <[EMAIL PROTECTED]> > i'm to update a pearl programme using mysql, i know only less of the > latter. i come across a statement > > $ver=$dbh->prepare(SELECT jobid, pid from jobs where exectime > now i want to know the perpose of " statement The < is just a less than. Nothi

doubt in requler expression

2003-01-20 Thread kasi ramanathen
$str='http://srd.yahoo.com/S=2766679:WS1/R=1/K=java/SS=79559/OCS=79428/H=0/T=1043090181/F=641685fa5455462d4f69450a6fd72ecc/*http://java.sun.com/";>Java.Sun.com'; if($str=~/[\w\W]*<(\W)/) { print $1; print "\n***\n"; } the output of the programe is / but i want the output as (extracting f

doubt in pattern matching

2003-01-21 Thread kasi ramanathen
dear friends: i have a simple doubts in reguler exepration see the the passage that follows is stored in a variable by name v. in the fifth line see the words like this "Next 20 ^ " now i want delete all the charecter before ^- sign in my variable v. shall i use find and replace to find all th

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

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

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 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-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

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 understanding

2001-06-08 Thread Jeff Yoak
At 02:16 PM 6/8/01 +0530, Rajanikanth Dandamudi wrote: >Hello, > > I had a problem understanding what the >expression ${1+"$@"} mean? can someone help me in >understanding this? That's bizarre. In what context did you encounter it? Cheers, Jeff

Re: Doubt in understanding

2001-06-08 Thread n6tadam
:22 AM Subject: Re: Doubt in understanding > At 02:16 PM 6/8/01 +0530, Rajanikanth Dandamudi wrote: > >Hello, > > > > I had a problem understanding what the > >expression ${1+"$@"} mean? can someone help me in > >understanding this? > > That&#

Re: Doubt in understanding

2001-06-08 Thread Rajanikanth Dandamudi
Hello, I had seen some of the perl files starting with the line : eval 'exec perl $0 -S ${1+"$@"}' and here is where I got the doubt. -- Thanks and Regards, D.Rajanikanth Jeff Yoak wrote: > At 02:16 PM 6/8/01 +0530, Rajanikanth Dandamudi wrote: > >H

Re: Doubt in understanding

2001-06-08 Thread Jean-Matthieu Guerin
hELLO, $@ is a system variable that return error messages. If our statement executed by the eval function (eval 'exec perl $0 -S ${1+"$@"}') contains an error, or an error occurs during the execution of the statement, the error message is stored in $@. I.e: eval ("This is not a perl statement")

Re: Doubt in understanding

2001-06-08 Thread Markus Peter
On Fri, 8 Jun 2001, Rajanikanth Dandamudi wrote: > Hello, > > I had seen some of the perl files starting with the > line : > > eval 'exec perl $0 -S ${1+"$@"}' > >and here is where I got the doubt. MakeMaker usually inserts the line into

Re: Doubt in understanding

2001-06-08 Thread Randal L. Schwartz
> "Rajanikanth" == Rajanikanth Dandamudi <[EMAIL PROTECTED]> writes: Rajanikanth> Hello, Rajanikanth> I had a problem understanding what the Rajanikanth> expression ${1+"$@"} mean? can someone help me in Rajanikanth> understanding this? That's a very very old shell expression. If $1

Re: grep (small doubt)

2002-04-02 Thread Mandar Rahurkar
Hi, Its me again.. 169b2_vow_band_1.fea 2168d6_vow_band_1.fea @files = grep /^.{3}g[^1].*\.fea$/, @files; can i have an or like for eg : @files = grep /^.{3|4}g[^1].*\.fea$/, @files; Many Thanks Mandar -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

  1   2   >