Thursday, March 19, 2020

The character in An Inspector Calls Essays

The character in An Inspector Calls Essays The character in An Inspector Calls Essay The character in An Inspector Calls Essay I also didnt choose Eric Birling as my most likeable character as he used Eva, he stole money from Arthur Birling to give her money to Eva for the baby. As Eva was a prostitute he used her just for sex. Erics parents think that he is all innocent, but really he is an heavy drinker. Eric says; I wasnt in love or anything but I did like her. This tells me he is a user and only wanted one thing. I didnt choose Eric as my most likable character as he was in the wrong, and didnt care about Eva. It then comes to Arthur Birling the father of Sheila and Eric. He only cares about himself and know one else. He wont accept the allegations thats made against him, and dont see how giving Eva the sack got anything to do with him. Even though he sacked her so she would be left with no money. Has he comes from a middle class family, he seems stuck up and selfish. As she says to the inspector; Look here I am not going to have this inspector, youll apologise at once. He only cares about money, as he says to Gerald; And now you have brought us together, and perhaps we may look forward to the time when Crofts and Birlings are no longer competing but are working together-for lower costs and prices. Arthur is certainly not my most likable character! My final character Gerald Croft has a very big part in Eva Smiths suicidal death. He never loved her or never would love her, but Eva had fallen head over heels in love with Gerald. He used her till he didnt want anymore. When they first met Eva was prostituting and he just used her just to please his needs. He had sex with her then paid her. Gerald told the inspector; He had become the most important person in his life. What Gerald has done he can never change. Also what he has done to Sheila is terrible too. He is a user and very selfish. And certainly is the most un-likable character. Sheila is definitely my most likable character, as she has shown the most honestly and true guiltiness. This is shown as when she saw the picture of Eva; she was the only one who had a little cry.

Monday, March 2, 2020

Using the Perl String Length Function

Using the Perl String Length Function Perl is a programming language used primarily to develop web applications. Perl is an interpreted, not compiled, language. This means its programs take up more CPU time than a compiled language - a problem that becomes less important as the speed of processors increases.  Writing code in Perl is faster than writing in a compiled language, so the time you save is yours. When you learn Perl, you learn how to work with the languages functions. One of the most basic is the string length function. How to Find Length of a String in Perl Perls length function returns the length of a Perl string in characters. Here is an example showing its basic usage: #!/usr/bin/perl $orig_string This is a Test and ALL CAPS;$string_len   length( $orig_string );print Length of the String is : $string_len\n; When this code is executed, it displays the following:  Length of the String is: 27. The number 27 is the total of the characters, including spaces, in the phrase This is a Test and ALL CAPS. Note that this function does not count the size of the string in bytes - just the length in characters. What About the Length of Arrays? The length function works only on strings, not on arrays. An array stores an ordered list and is preceded by an sign and populated using parentheses. To find out the length of an array, use the scalar function. For example: my many_strings (one, two, three, four, hi, hello world);say scalar many_strings; The response is 6, the number of items in the array. A scalar is a single unit of data. It might be a group of characters, as in the example above, or a single character, string, floating point, or integer number.