no it shouldn't.
1) you didn't do anything to get the query string
2) you undef right before checking the value, which would negate anything you stored in $test from the query string if you HAD parsed the query string
#!/usr/bin/perl
use strict;
use CGI qw/:standard/;
my $test = param('test');
print 'Did it work?' if $test eq 'test';
_________________________
"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan