Overwrite with empty string in a file read line Perl?

I'm using the string 'aaZbbZccZddZeeZff' so that it is easier to identify the nth item rather than the characters you are using.

I'm using the string 'aaZbbZccZddZeeZff' so that it is easier to identify the nth item rather than the characters you are using. As a regular expression, to remove the fourth item, my $data = 'aaZbbZccZddZeeZff'; $data =~ s/((?:..Z){3})../\1/; print $data; print "\n"; This returns the string 'aaZbbZccZZeeff' (note the doubled delimiter - though this is easy to fix by adding the delimiter to the match). If you already have split this into a list, it is also possible to use splice to remove an item from the list and then reconstruct the string.My $data = 'aaZbbZccZddZeeZff'; my @data = split('Z',$data); splice(@data,3,1); print $data; print "\n"; This prints 'aaZbbZccZeeZff'.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions