I am just a beginner While studying the tutorial i could find that in order to split a sentence into its corresponding words use (Here iam giving only the relevant code)
@array = /[a-z]+/ig;
Actually the sentence is $sentence= 'My favorite numbers are 1,3,5,57,1001';
Output when \n is used is:--
My
favorite
numbers
are
My doubt is why Perl is not taking it as aaaaaa etc ,bbbbbbetc, cccccccccetc that how it printed a combination of f,a,v,o,r,i,t,e ie favorite Can anyone please help me...
@array = /[a-z]+/ig;
Actually the sentence is $sentence= 'My favorite numbers are 1,3,5,57,1001';
Output when \n is used is:--
My
favorite
numbers
are
My doubt is why Perl is not taking it as aaaaaa etc ,bbbbbbetc, cccccccccetc that how it printed a combination of f,a,v,o,r,i,t,e ie favorite Can anyone please help me...
Comment