Hi Thomas,
On Wed, 2 Jan 2013 14:34:07 +
"Hamann, T.D." wrote:
> Hello,
>
> Given a string:
>
> i994
>
> where I want to replace the 'i' by a '1' the following regex succesfully
> replaces the letter by a number:
>
> s/(i)(\d\d\d)/1$2/;
>
> However, given a string:
>
> i99o
>
> where
Hello,
Given a string:
i994
where I want to replace the 'i' by a '1' the following regex succesfully
replaces the letter by a number:
s/(i)(\d\d\d)/1$2/;
However, given a string:
i99o
where I want to replace the 'i' by a '1' and the 'o' by a '0' (zero), the
following regex fails:
s/(i)(\d
John,
Thanks for your clarification.
I used to call it as Output List Separator, now I knew it is just List
Separator.
best,
Shaji
---
Your talent is God's gift to you. What you do with it is your gift back to God.
--
*Shaji Kalidasan* wrote:
Neeraj,
If you print an array inside double quotes, each item of the array is
separated by the value specified in Perl special variable $" which is
the Output list separator. (interpolated lists)
It is just the _List Separator_ , it has nothing to do with output.
Jo
Neeraj wrote:
Hi,
I am new to Perl and perplexed with output of printing entire Array vs
printing each element
+4 ## check Array vis-a-vis List
+5
+6 @arr = qw;
+7 print "my array is : @arr \n";
+8
+9 ## lets print in a loop
+10 my $i = 0;
+11 while (
Neeraj,
If you print an array inside double quotes, each item of the array is separated
by the value specified in Perl special variable $" which is the Output list
separator. (interpolated lists)
By default the value of $" is space
So you can rewrite your code modifying the Output list separat
> Did you enjoy using Catalyst?
Yes I did. But I think using Catalyst for this small task will be an
overkill.
> I'm assuming, since you're asking the question, that you're feeling you'd
like to try something else.
I think you're right. Dancer is attracting me ;)
> that was about 4am my time :
On Wed, 2 Jan 2013 16:05:25 +0530
Neeraj wrote:
> Why do i have white-space between words when printing array while not
> getting white-space when printing individual element.
perlfaq explains this - from perlfaq5:
Why do I get weird spaces when I print an array of lines?
(contributed
On Wed, 2 Jan 2013 10:32:56 +0530
Chankey Pathak wrote:
> Hi guys,
>
> I have to make a simple web app which should have the features
> mentioned below:
>
> 1. User registration - Users can signup and login
> 2. New message creation: User can create and post new messages
> 3. Follow users: User
Hi,
I am new to Perl and perplexed with output of printing entire Array vs
printing each element
+4 ## check Array vis-a-vis List
+5
+6 @arr = qw ;
+7 print "my array is : @arr \n";
+8
+9 ## lets print in a loop
+10 my $i = 0;
+11 while ($i <= $#arr)
+12 {
Okay, thanks :)
On Wed, Jan 2, 2013 at 1:52 PM, Octavian Rasnita wrote:
> From: "Chankey Pathak"
>
>
> Hi guys,
>>
>> I have to make a simple web app which should have the features mentioned
>> below:
>>
>> 1. User registration - Users can signup and login
>> 2. New message creation: User can
From: "Chankey Pathak"
Hi guys,
I have to make a simple web app which should have the features mentioned
below:
1. User registration - Users can signup and login
2. New message creation: User can create and post new messages
3. Follow users: Users can follow other users
4. User Home Page - On
12 matches
Mail list logo