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,

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

RE: Doubt

2001-08-30 Thread John Edwards
It doesn't matter to Perl if you store alphanumerics or numbers or both in scalar. When you want to perform a numeric function on the scalar, Perl treats the data in it as numeric. When you want to perform an alphanumeric on it, it treats the data as alphanumerics. e.g $data = "one"; $new = "$da

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 >http://www.cpan.org/doc

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't open : N

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

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.

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 '?:' Normally, something enclosed in parent

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 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 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
Hi, That expression looks more like something one would encouter in a BASH script. Thomas Adam - Original Message - From: Jeff Yoak <[EMAIL PROTECTED]> To: Rajanikanth Dandamudi <[EMAIL PROTECTED]>; Perl beginners <[EMAIL PROTECTED]> Sent: Friday, June 08, 2001 10

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: > >Hello, > > > > I had a pro

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 perl executables when they are installed. On some

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

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 > > # Figure 1.2: Read the first line fro

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

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: doubt about do/until

2001-05-30 Thread King, Jason
[EMAIL PROTECTED] wrote .. >In http://www.cpan.org/doc/FMTEYEWTK/is_numeric.html, >( Is it a number? ), Tom Christiansen writes: >--- >If you do care about getting 0's, then do this: > do { > print "Number, please: "; > $

RE: doubt about do/until

2001-05-30 Thread Peter Scott
At 11:32 AM 5/31/01 +1000, King, Jason wrote: >I notice that the copyright notice is 1996 .. so perhaps my memory is >failing me and that there was a version of Perl where did NOT grab >the line-ending character as well .. otherwise Tom really is human and has >made a mistake :) I would peg it a

Re: doubt about do/until

2001-06-03 Thread Gerrit P. Haase
[EMAIL PROTECTED] schrieb am 2001-05-31, 18:30: > Hi gurus, > In http://www.cpan.org/doc/FMTEYEWTK/is_numeric.html, ( Is it a > number? ), Tom Christiansen writes: > >-- > If you do care about ge

Re: doubt in requler expression

2003-01-20 Thread Rob Dixon
Kasi ramanathen wrote: > $str=' href="Java.Sun.com'">http://srd.yahoo.com/S=2766679:WS1/R=1/K=java/SS=79 559/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"; > } > It's very hard to see

RE: doubt in pattern matching

2003-01-21 Thread Dan Muey
> dear friends: Howdy > > 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

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

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 thi

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

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-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-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 about $ in perldoc perlvar

2001-05-17 Thread Jos I Boumans
Sure, just try running these 2 bits of code and you'll see what that means: ### example 1 ### $foo = 'bar'; $foo =~ /(bar)/; $firstmatch = $1; $foo =~ /(quux/; $secondmatch = $1; print "$firstmatch and $secondmatch\n"; ### example 2 ### $foo = 'bar'; { $foo =~ /(bar)/; $firstmatc

Re: doubt about $ in perldoc perlvar

2001-05-17 Thread Jeff Pinyan
On May 17, [EMAIL PROTECTED] said: > $ > Contains the subpattern from the corresponding set > of parentheses in the last pattern matched, not > counting patterns matched in nested blocks that have > been exited already. (Mnemonic: like \digits.

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

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 the perl module Storable.pm

2001-07-12 Thread C.J. Collier
Heya Rajanikanth, It looks like the man page (perldoc Storable) gives a good description of what dclone does: __QUOTE__ MEMORY STORE The Storable engine can also store data into a Perl scalar instead, to later retrieve them. This is mainly used to freeze a complex structure

Re: Doubt in the perl module Storable.pm

2001-07-13 Thread Rajanikanth Dandamudi
Schwartz, Collier, First let me thank you for helping me in this regard. Also, I am sorry for sending you the mail in unformatted manner. Actually, I had formatted the mail by using xemacs and had send it. But, I don't know how the message looked like this. Coming to the point, Schwartz, I h

Re: doubt in pattern matching using variable

2003-02-05 Thread Rob Dixon
Kasi ramanathen wrote: > hi friends, > > i have a problem in work i want to use a variable in the place of > pattern to be matched, but i don't know how? but some great brain > some ware in the world will be knowing it. > > hear i explain the program, when i use the patter i get the right > output

Re: doubt in pattern matching using variable

2003-02-05 Thread R. Joseph Newton
kasi ramanathen wrote: > $t="perl"; > while($ln=~m/$t/g) > { > print "it matches.."; > } > Hi Kasi, The part above shoul;d work, because this does: #!/usr/bin/perl -w use strict; my $Test = "Hi"; my $Greeting = "Hi, there. How are you?"; if ($Greeting =~ /$Test/) { print "$Greeting\n";

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

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

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