> "SHC" == Shawn H Corey writes:
SHC> On 10-12-27 07:11 PM, Uri Guttman wrote:
>>> "SHC" == Shawn H Corey writes:
SHC> On 10-12-27 06:30 PM, Uri Guttman wrote:
>> >> yes, you have misunderstood it. where did you read or learn that /x
>> >> ignores whitespace in the data?
>>
On Dec 27, 2:34 pm, paragka...@gmail.com (Parag Kalra) wrote:
> Hi,
>
> I was under the impression that regex modifier '/x' ignores the white
> space. So in following script both the if-else blocks should print
> "Match" since the strings differ only in white space and '/x' should
> ignore the whit
Hi,
I think it is not fair to pointing the reader out directly to Linux.
There are other systems out there more Open Source than Linux like OpenBSD
(for example). I think a briedfly review of these other OS would be good
for the article and, after that, let the reader to choose between Linux
On 2010-12-27 23:34, Parag Kalra wrote:
I was under the impression that regex modifier '/x' ignores the white
space. So in following script both the if-else blocks should print
"Match" since the strings differ only in white space and '/x' should
ignore the white space.
See perlre:
x Exten
On Dec 27, 2:34 pm, paragka...@gmail.com (Parag Kalra) wrote:
> I was under the impression that regex modifier '/x' ignores the white
> space.
It ignores white space in the regular expression, not in the text you
are matching.
For example, the following are equivalent:
if($str =~/$str3/x){
On 10-12-27 07:11 PM, Uri Guttman wrote:
"SHC" == Shawn H Corey writes:
SHC> On 10-12-27 06:30 PM, Uri Guttman wrote:
>> yes, you have misunderstood it. where did you read or learn that /x
>> ignores whitespace in the data?
SHC> He probably got the idea since other non-alphanum
> "SHC" == Shawn H Corey writes:
SHC> On 10-12-27 06:30 PM, Uri Guttman wrote:
>> yes, you have misunderstood it. where did you read or learn that /x
>> ignores whitespace in the data?
SHC> He probably got the idea since other non-alphanumeric characters in a
SHC> variable must be
Thanks All.
With all these examples, now I see how /x works.
Cheers,
Parag
On Mon, Dec 27, 2010 at 2:39 PM, Tim Mitchell wrote:
> Try my $str = "HelloWorld";
>
> On Mon, Dec 27, 2010 at 2:34 PM, Parag Kalra wrote:
>>
>> Hi,
>>
>> I was under the impression that regex modifier '/x' ignores t
On 10-12-27 06:30 PM, Uri Guttman wrote:
yes, you have misunderstood it. where did you read or learn that /x
ignores whitespace in the data?
He probably got the idea since other non-alphanumeric characters in a
variable must be escaped; un-escaped ones act like meta-characters.
$ perl -e'$v=
On Mon, Dec 27, 2010 at 6:56 PM, Shlomi Fish wrote:
> Hi all,
>
> I recently finished working on a new document titled "How to Start
> Contributing to or Using Open Source Software" intended to get more people
> involved in the world of free and open source software (FOSS). You can find it
> here:
> "PK" == Parag Kalra writes:
PK> I was under the impression that regex modifier '/x' ignores the
PK> white space. So in following script both the if-else blocks should
PK> print "Match" since the strings differ only in white space and
PK> '/x' should ignore the white space.
/x only
Hi,
I was under the impression that regex modifier '/x' ignores the white
space. So in following script both the if-else blocks should print
"Match" since the strings differ only in white space and '/x' should
ignore the white space.
But looks like my understanding of '/x' is wrong. Could someone
Thanks to everyone for the responses and pointers to info. This has
been very helpful and educational. :)
-J
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
On Dec 25, 2:21 am, shlo...@iglu.org.il (Shlomi Fish) wrote:
> -- Forwarded Message --
>
> Subject: Re: Writing 3D games with Perl... How's the Performance?
> Date: Friday 24 December 2010, 12:43:11
> From: Shlomi Fish
> To: beginn...@perl.org
> CC: "U.N."
>
> [snip]
>
> > I
> "JH" == Jugurtha Hadjar writes:
JH> Hello,
JH> On 12/24/2010 06:45 PM, Uri Guttman wrote:
>>> "JH" == Jugurtha Hadjar writes:
>>
JH> my @data =0;
JH> my @fields =0;
JH> my @val=0;
>>
>> that has to be wrong. that is setting the arrays to a list with the
>> e
Hello,
On 12/24/2010 06:45 PM, Uri Guttman wrote:
"JH" == Jugurtha Hadjar writes:
JH> my @data =0;
JH> my @fields =0;
JH> my @val=0;
that has to be wrong. that is setting the arrays to a list with the
element 0, not an empty list.
Exactly. I tried to do something like
m
Hello,
I visited the page, and bookmarked it. It's funny, it's like you're
describing almost the exact process I'm going through..
About the programming part, I'm in Control/Feedback Systems, but I think
that every person has something to benefit from learning to program..
I used to be ver
Hi all,
I recently finished working on a new document titled "How to Start
Contributing to or Using Open Source Software" intended to get more people
involved in the world of free and open source software (FOSS). You can find it
here:
http://teachingopensource.org/index.php/How_to_start_contri
On 12/27/2010 06:11 AM, Sisyphus wrote:
>
> - Original Message - From: "Randal L. Schwartz"
>
> To:
> Sent: Monday, December 27, 2010 1:57 PM
> Subject: Re: Syntax Errors
>
>
>>> "Bill" == Bill Casey writes:
>>
>> Bill> Syntax error at import_track.pl line 11, near ") {"
>> Bill
> On 26/dic/2010, at 19:54, SERIER wrote:
>
>> What are some of the best books for newbies to perl?
For a programming beginner in general, Learning Perl
(http://oreilly.com/catalog/9780596520106/ by Randal Schwartz, Tom
Phoenix, and Brian D. Foy, aka the Llama book) is an excellent book. For
som
20 matches
Mail list logo