I've found a program and interpreter for PERL 5.8 so to everyone who tried to help me with that thank you.
Now my attention turns to the GREP function in PERL. From what I understand GREP is a simple pattern matching function that searches for either the full element in a string or a first letter of an element, but if anyone can clarify this that would be great :)
[CODE=perl]
@lastNames = ('Sutherland',' Summers','Sunle y','Duran','Gri eve')
@JustSNames = grep(/^S/, @lastNames);
[/CODE]
For example in the above code I have a list and a regular expression that is trying to search for all the elements in this list that start with a letter S and return the full element.
Now my attention turns to the GREP function in PERL. From what I understand GREP is a simple pattern matching function that searches for either the full element in a string or a first letter of an element, but if anyone can clarify this that would be great :)
[CODE=perl]
@lastNames = ('Sutherland',' Summers','Sunle y','Duran','Gri eve')
@JustSNames = grep(/^S/, @lastNames);
[/CODE]
For example in the above code I have a list and a regular expression that is trying to search for all the elements in this list that start with a letter S and return the full element.
Comment