My Perl Quiz

The ultimate place for testing what you have learned



Home | Start Quiz | List of questions  | Next Question | Login / Register

Question #51: Which of the following will be matched by this code?
44% on 169 times asked

my $pattern = '.*';
$str =~ /(\Q$pattern\E)/;

any number of any characters
any number of any characters surrounded by Q and E
literally Q.*E
literally .*
literally \Q.*\E
© 2007-2010, My Perl Quiz, All rights reserved.
Can you find a bug in the quiz? Can you think of a new question that would be cool to add to this site? Email us and we will take action:
email us
Other Quizes | Contributors