Hi all,
I would like to know any available web links for learning file operations
.which helps from basic and to little deeper.
Seached in google ,but i didnt get required info.
Regards,
chandan.
Hi ,
using split ,I would like to split on space character. Dont want to use
character classes.
my $string="108 ambulance 100\nfireengine141jack";
my @array = split /' '/,$string;
foreach my $value (@array){
print "$value \n";
}
Result : its splitting on new line character.instead of spa
"John W. Krahn"
scribbled:
> Rob Dixon wrote:
>> On 20/07/2010 16:22, Chandan Kumar wrote:
>>>
>>> Small confusion about word boundaries. word boundaries matches
>>> anything between non-word character and word character ,right.
>>
>> Not qui
Hi ,
Small confusion about word boundaries. word boundaries matches anything between
non-word character and word character ,right.
Here is small example :
$_ = "?Jack do you know the beauty of perl"
print "Enter your text:";
my $pattern = ;
chomp $pattern;
if (/$pattern/){
print "1.$1\n";
}
Thanks guys, I could able to understand split fun.
--- On Mon, 19/7/10, John W. Krahn wrote:
From: John W. Krahn
Subject: Re: usage of Split on pattern matching
To: "Perl Beginners"
Date: Monday, 19 July, 2010, 4:29 PM
Chandan Kumar wrote:
> Hi all,
Hello,
> Iam beginner
Hi all,
Iam beginner to perl & i have a small query on split.
using split i want print everything even the character used to split on string.
Here is my example :
my $string = "hi123now456itstimeforsplit789right"
my @array = split ( '/(\d+\s)/ ',$string);
## Trying to split using digitnumbe
Thanks in advance.
Best Regards,
chandan.
--- On Thu, 15/7/10, Chas. Owens wrote:
From: Chas. Owens
Subject: Re: Query on Qunatifiers
To: "Thomas Bätzler"
Cc: "Beginners Perl" , "Chandan Kumar"
Date: Thursday, 15 July, 2010, 2:08 PM
On Thu, Jul 15, 20
Hi ,
Thanks guys for your quick response.
I will try it out combinations and get back to you if i have issues.
Regards,
chandan.
--- On Thu, 15/7/10, Thomas Bätzler wrote:
From: Thomas Bätzler
Subject: AW: Query on Qunatifiers
To: "Beginners Perl"
Cc: "Chand
Hi ,
I have query over quantifiers.
Could you please explain the combination of operators Question mark
(?),dot(.),star(*),plus(+).
Say this is my string:
$_ = " this is my first pattern ,quite confused with quantifiers"
ex: (thi.*?) or (thi.+?) etc
I know what each operator doe