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,
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
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
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
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
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
@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
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
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
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."
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
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
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
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.
* 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
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
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
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
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
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
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")
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
> "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
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
> -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
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
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
"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
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
>
>
>
>
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
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(
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
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
*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
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
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
[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: ";
> $
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
[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
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
> 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
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
_
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
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)
>
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
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
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{
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
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
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.
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
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
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
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
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
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";
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
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
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
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
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
61 matches
Mail list logo