Based on perlref documentation arrow operator between brackets subscripts
may be omitted so the following code is valid:
@array = ( [1, 2], [3, 4] );
$element = $array[0][0];# shorthand for $element = $array[0]->[0]
Could somebody explain why it causes syntax error when the above rule is
Tom Phoenix wrote:
On 5/30/07, Robert Hicks <[EMAIL PROTECTED]> wrote:
I need to parse email headers and the body of the email. The emails are
supposed to be plain text only but sometimes someone goofs and sends one
in HTML. I need to strip away the HTML elements and/or covert it to
plain text
On 5/30/07, Robert Hicks <[EMAIL PROTECTED]> wrote:
I need to parse email headers and the body of the email. The emails are
supposed to be plain text only but sometimes someone goofs and sends one
in HTML. I need to strip away the HTML elements and/or covert it to
plain text to process.
That r
Since CPAN is pretty huge, I thought I would throw out a request for
comments.
I need to parse email headers and the body of the email. The emails are
supposed to be plain text only but sometimes someone goofs and sends one
in HTML. I need to strip away the HTML elements and/or covert it to
p
On 30 May 2007 06:07:55 -0700, cc96ai <[EMAIL PROTECTED]> wrote:
snip
I have a UTF8 input
$value = "%23%C2%A9%C2%AE%C3%98%C2%A5%C2%BC%C3%A9%C3%8B
%C3%B1%C3%A0%C3%A6%3F%23";
the HTML output should be
">#(c)(r)Ø¥¼éËñàæ?#";
but I cannot find a way to convert it
snip
#!/usr/bin/perl
use strict;
u
On May 30, 3:51 am, [EMAIL PROTECTED] (Mumia W.)
wrote:
> On 05/29/2007 07:00 PM, cc96ai wrote:
>
> > I got UTF8 value %C3%A9
> > how could I encode it become é ?
>
> > I try encode_base64 , but no luck
> > maybe I miss some, anyone have idea ?
>
> You need to provide more detail about your problem
On 30 May 2007 08:53:54 -0700, Paul Lalli <[EMAIL PROTECTED]> wrote:
snip
I got confused by this too. I think Sharan's question comes down to
"why isn't this an infinite loop?" That is, why does pos() move ahead
one character when it matches 0 characters? This is not limited to
look-ahead asse
On 5/30/07, Ken Foskey <[EMAIL PROTECTED]> wrote:
snip
CSV is a horrible format. Far too unreliable, we have exported CSV
from excel that imported differently into excel.
snip
Just pedantic nitpick, but CSV is an incredibly reliable format, the
problem is find programs that actually use CSV r
On 5/30/07, Laxminarayan G Kamath A <[EMAIL PROTECTED]> wrote:
snip
Any ways of optimising it further?
snip
Premature optimization is the root of all evil. Have you profiled the
code yet? If not then here is some documentation that will point you
in the right direction
http://www.perl.com/pu
On May 30, 10:02 am, [EMAIL PROTECTED] (Chas Owens) wrote:
> On 5/30/07, Sharan Basappa <[EMAIL PROTECTED]> wrote:
> > You mention that if I write a rule like @store = $str =~ m/((?=\d\d\d))/g;
> > then the scanner does not move ahead. But as I mentioned in my mail,
> > the result of this regex is
Thanks Rob and Chas ..
On 5/30/07, Rob Dixon <[EMAIL PROTECTED]> wrote:
Sharan Basappa wrote:
>
> Hi All,
>
> I have some background working with scanners built from Flex. And I have
> used lookahead capability of flex many a times. But I dont understand
the
> meaning of ZERO in zero lookahead
On May 29, 7:39 pm, [EMAIL PROTECTED] (Jeevs) wrote:
> Yeah i tested it and it works manuaaly (dats the reason i used the
> word automatically in my previous post)
> Was wondering why dat dosnt work
> Thanks TOM for the reply
Thanks Paul
That really helped..
--
To unsubscribe, e-mail: [
Sharan Basappa wrote:
Hi All,
I have some background working with scanners built from Flex. And I have
used lookahead capability of flex many a times. But I dont understand the
meaning of ZERO in zero lookahead match rule i.e. (?=pattern)
For example, to capture overlapping 3 digit patterns fr
On 5/30/07, Sharan Basappa <[EMAIL PROTECTED]> wrote:
>> this is what the zero-width lookahead assertion means. It say with
>>out moving where you are currently starting the match, make certain
>>you can match the following pattern. If you want it to move where the
>>match starts then you have
this is what the zero-width lookahead assertion means. It say with
out moving where you are currently starting the match, make certain
you can match the following pattern. If you want it to move where the
match starts then you have to include something that does not have
zero-width like this
On 5/30/07, Sharan Basappa <[EMAIL PROTECTED]> wrote:
Hi All,
I have some background working with scanners built from Flex. And I have
used lookahead capability of flex many a times. But I dont understand the
meaning of ZERO in zero lookahead match rule i.e. (?=pattern)
snip
You may also prefe
On 5/30/07, Sharan Basappa <[EMAIL PROTECTED]> wrote:
Hi All,
I have some background working with scanners built from Flex. And I have
used lookahead capability of flex many a times. But I dont understand the
meaning of ZERO in zero lookahead match rule i.e. (?=pattern)
snip
I don't know jack
Hi All,
I have some background working with scanners built from Flex. And I have
used lookahead capability of flex many a times. But I dont understand the
meaning of ZERO in zero lookahead match rule i.e. (?=pattern)
For example, to capture overlapping 3 digit patterns from string $str =
123456
On Wed, 2007-05-30 at 13:34 +0530, Laxminarayan G Kamath A wrote:
> What I am expecting is help with the variant of the regex I used as the
> condition for while loop. I am sure If we modify that regexp a little
> bit, then we can just use it on the record like this :
>
> $_ = $record;
> @fields
On 05/30/2007 03:04 AM, Laxminarayan G Kamath A wrote:
[...]
I tried a lot of different ways but just could not get the right
regexp :-(.
I reiterate what the eminent Dr. Ruud said. I need some data to play
with before I play with the code you posted.
--
To unsubscribe, e-mail: [EMAIL P
On 05/29/2007 07:00 PM, cc96ai wrote:
I got UTF8 value %C3%A9
how could I encode it become é ?
I try encode_base64 , but no luck
maybe I miss some, anyone have idea ?
You need to provide more detail about your problem.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Laxminarayan G Kamath A schreef:
> The stubling blocks : there are several types of problems in
> Outlook's CSV ..
You forgot to supply a link to such a file. Or show a __DATA__ section
for testing.
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
On Wed, 30 May 2007 01:26:30 -0500, "Mumia W." wrote:
> The Perl module Text::CSV_XS would make your work much simpler, and
> it might execute a little faster.
Thank you for pointing out .. but we have already tried it!
Unfortunately, it failed to seperate the records in the right fashion.
We h
Enough Is enough, can we leave this thread be now. This just puts people off
posting questions looking for help in fear of joining some flame war.
-Original Message-
From: Brian [mailto:[EMAIL PROTECTED]
Sent: 29 May 2007 19:30
To: beginners@perl.org; [EMAIL PROTECTED]
Subject: Re: Array
On 05/30/2007 12:40 AM, Laxminarayan G Kamath A wrote:
Hi PERLers,
We here at DeepRoot Linux were trying to parse Outlook's csv so
that I can add them to ldap addressbook.. [...]
The Perl module Text::CSV_XS would make your work much simpler, and it
might execute a little faster.
--
To
25 matches
Mail list logo