NAME

Question types


Start with


Question limit

of 35 available terms

Print test

35 Matching questions

  1. regex match with any capital letter
  2. get length of string s
  3. open file and print "hello"
  4. get substring of s
  5. declare an array a of the numbers 1,2,4
  6. sort @days alphabetically
  7. convert string to lower case
  8. cycle through each element in hash %data
  9. if string equals yes
  10. declare a variable x equal to 5
  11. for each variable in array, print variable
  12. if x contains either A B or C
  13. get name data from CGI using post
  14. get all data from CGI using post
  15. print date in $s = "Today is 17 May 2006"
  16. remove new line from string s
  17. read one line from keyboard
  18. join bob & mary by comma
  19. start perl script
  20. get item with key 2 in data hash
  21. concatenate strings hello + world into s
  22. remove last item in @days
  23. substitute bob for mary in string
  24. reverse days array
  25. print hello world
  26. get 2nd and 3rd values from days array
  27. split string by comma into array
  28. regex letter followed by white space
  29. open file.txt and read each line, printing to console
  30. declare a hash h where a has key 1, b has key 2
  31. declare a string x equal to Mary
  32. regex ABC last characters
  33. regex ABC first characters
  34. size of array
  35. remove first item in @days
  1. a @var = param();
  2. b /\w\s/
  3. c $x = <STDIN>;
  4. d /ABC$/
  5. e $#array
  6. f lc($s)
  7. g substr($s, start, len)
  8. h while ( ($key, $val) = each (%data) ) {print "$key = $val";}
  9. i $s ~= /(\d+) (\w+) (\d+)/;
    print "$1 $2 $3";
  10. j print "Hello world";
  11. k /[A-Z]/
  12. l my %h = (1=>a, 2=>b);
  13. m $last = pop(@days);
  14. n my @a = (1, 2, 3);
  15. o my $x = 'Mary';
  16. p s/bob/mary/;
  17. q @sorted = sort(@days);
  18. r /^ABC/
  19. s if ($s eq 'yes')
  20. t $item = $data{'2'};
  21. u $var = param('name');
  22. v length($s)
  23. w open(my $in, "<file.txt");
    while (my $row = <$in>) { print "$row"; }
    close $in;
  24. x if ($x ~= /[ABC]/)
  25. y ($x, $y) = @days[1,2];
  26. z @a = split /,/,$s;
  27. aa foreach $x (@array) { print "$x"; }
  28. ab open (my $in, ">>file.txt");
    print $in "hello";
    close $in;
  29. ac chomp($s)
  30. ad #!/usr/bin/perl
    use strict;
    use CGI ':standard';
  31. ae @rev = reverse(@days);
  32. af $first = shift(@days);
  33. ag my $x = 5;
  34. ah join(',','bob','mary');
  35. ai $s = 'hello'.'world';