As I found out a long time ago, you really can pass query string parameters to a script using CGI.pm. I do not recommend this as the preferred debugging method (it is better to have replicated things stored in files that are then directed to the STDIN script), however it works:
#!/usr/bin/env perl use warnings; use strict; use CGI; my $cgi = CGI->new; my $param_name = 'the_username'; printf( "The value of '%s' is '%s'.\n", $param_name, $cgi->param($param_name) );
Conclusion:
$ ./t.pl the_username = yadayada
The value of 'the_username' is 'yadayada'.
source share