> "SD" == Soham Das writes:
SD> - Forwarded Message
SD> From: Soham Das
SD> To: Uri Guttman
SD> Sent: Thursday, 16 July, 2009 11:23:29 AM
SD> Subject: Re: Modifiers on the right side of the statement
SD> I believe its because =~ has the highest priorty...
the term is
- Forwarded Message
From: Soham Das
To: Uri Guttman
Sent: Thursday, 16 July, 2009 11:23:29 AM
Subject: Re: Modifiers on the right side of the statement
I believe its because =~ has the highest priorty...
- Original Message
From: Uri Guttman
To: John W. Krahn
Cc: Perl
Uri Guttman wrote:
"JWK" == John W Krahn writes:
>>> Can someone point out the importance of the brackets in which '2'
>>> prints, but '1' does not? I've always thought that the brackets could be
>>> omitted:
>>>
>>> print "1" if ref $href =~ /HASH/;
>>> print "2" if ref($href)
Uri Guttman wrote:
> you need to wrap the call in block eval and check for die
> afterwards. see perldoc -f eval and perlvar for $...@. note that this is
> BLOCK eval which is fine to use anywhere you want to trap dies and not
> string eval which is evil unless absolutely necessary.
>
> SB> is
Uri Guttman wrote:
>> "SB" == Steve Bertrand writes:
>
> SB> I thought afterword that it had to do with precedence. I'll stick to
> SB> using brackets when I know I need the left side evaluated before moving
> SB> forward.
>
> you don't need parens (those aren't brackets, [] are bracke
> "SB" == Steve Bertrand writes:
SB> I thought afterword that it had to do with precedence. I'll stick to
SB> using brackets when I know I need the left side evaluated before moving
SB> forward.
you don't need parens (those aren't brackets, [] are brackets, {} are
braces) for that, jus
> "JWK" == John W Krahn writes:
>>> Can someone point out the importance of the brackets in which '2'
>>> prints, but '1' does not? I've always thought that the brackets could be
>>> omitted:
>>>
>>> print "1" if ref $href =~ /HASH/;
>>> print "2" if ref($href) =~ /HASH/;
>>
John W. Krahn wrote:
> Steve Bertrand wrote:
>>> Can someone point out the importance of the brackets in which '2'
>>> prints, but '1' does not? I've always thought that the brackets could be
>>> omitted:
>>>
>>> print "1" if ref $href =~ /HASH/;
>>> print "2" if ref($href) =~ /HASH/;
>>
>> ... i
Steve Bertrand wrote:
Steve Bertrand wrote:
Hi all,
While writing some tests, I ran into something that took me quite a
while to troubleshoot. Although I figured out the problem, I don't
understand why the problem is occurring.
Can someone point out the importance of the brackets in which '2'
Steve Bertrand wrote:
> Hi all,
>
> While writing some tests, I ran into something that took me quite a
> while to troubleshoot. Although I figured out the problem, I don't
> understand why the problem is occurring.
>
> Can someone point out the importance of the brackets in which '2'
> prints, b
Hi all,
While writing some tests, I ran into something that took me quite a
while to troubleshoot. Although I figured out the problem, I don't
understand why the problem is occurring.
Can someone point out the importance of the brackets in which '2'
prints, but '1' does not? I've always thought t
Lex Thoonen wrote:
Hi,
I'm trying to do this:
in the original text is this:
((se-HomePage|Svenska))
I want to leave it at just:
Svenska
So I tried this:
$row[3] =~ s|\(\(.*?\|(.*?)\)\)|$1|g;
but somehow after substituting it now shows:
((se-HomePage|Svenska
I don't get it.
$ perl -le
Lex Thoonen wrote:
> Hi,
>
> I'm trying to do this:
>
> in the original text is this:
>
> ((se-HomePage|Svenska))
>
> I want to leave it at just:
>
> Svenska
>
> So I tried this:
>
> $row[3] =~ s|\(\(.*?\|(.*?)\)\)|$1|g;
>
> but somehow after substituting it now shows:
>
> ((se-HomePage|Sv
Hi,
I'm trying to do this:
in the original text is this:
((se-HomePage|Svenska))
I want to leave it at just:
Svenska
So I tried this:
$row[3] =~ s|\(\(.*?\|(.*?)\)\)|$1|g;
but somehow after substituting it now shows:
((se-HomePage|Svenska
I don't get it.
Someone here?
Thanks!
--
Lex
> "KJ" == Kelly Jones writes:
KJ> According to "man perlrun", the "-0777" option sets $/ to 0777 and
KJ> slurps files whole. This works fine.
KJ> However, when I did 'local $/="0777"' in a script, it usually worked,
KJ> but sometimes failed and only slurped part of the file.
KJ> C
I found Learning Perl very good, it could be a good place to start.
On Wed, Jul 15, 2009 at 6:53 PM, Shawn H. Corey wrote:
> On Wed, 2009-07-15 at 05:58 -0700, shridhar kyrlageri wrote:
> > hi guys
> >
> > i am very new to perl . i want to learn this language but i dont know
> > where to sart and
On Wed, Jul 15, 2009 at 09:31, Kelly Jones wrote:
> According to "man perlrun", the "-0777" option sets $/ to 0777 and
> slurps files whole. This works fine.
>
> However, when I did 'local $/="0777"' in a script, it usually worked,
> but sometimes failed and only slurped part of the file.
>
> Chang
According to "man perlrun", the "-0777" option sets $/ to 0777 and
slurps files whole. This works fine.
However, when I did 'local $/="0777"' in a script, it usually worked,
but sometimes failed and only slurped part of the file.
Changing this to "local $/ = undef" worked fine.
Why?
--
We're j
On Wed, 2009-07-15 at 05:58 -0700, shridhar kyrlageri wrote:
> hi guys
>
> i am very new to perl . i want to learn this language but i dont know
> where to sart and what to do. please enlighten me
>
Try http://perlmonks.org/?node=Tutorials
--
Just my 0.0002 million dollars worth,
Shawn
Hi,
This one helped me to get started:
http://oreilly.com/catalog/9780596520106/
Quickly followed by:
http://oreilly.com/catalog/9780596000271/
Good Luck!
-
Marco van Kammen
Springer Science+Business Media
System Manager & Postmaster
-
van Godewijckstraat 30 | 3311 GX
Office Number: 05E21
hi guys
i am very new to perl . i want to learn this language but i dont know where to
sart and what to do. please enlighten me
Love Cricket? Check out live scores, photos, video highlights and more.
Click here http://cricket.yahoo.com
Nick Brown wrote:
I'm trying to use Finance::OFX::Response to use a ofx statement I've
it downloaded from by bank website.
http://search.cpan.org/~bfoz/p5-Finance-OFX-20080303/lib/Finance/OFX/Response.pm
However there I'm getting the following perl compilation error:
Type of arg 1 to each must b
I'm trying to use Finance::OFX::Response to use a ofx statement I've
it downloaded from by bank website.
http://search.cpan.org/~bfoz/p5-Finance-OFX-20080303/lib/Finance/OFX/Response.pm
However there I'm getting the following perl compilation error:
Type of arg 1 to each must be hash (not subrouti
23 matches
Mail list logo