in reply to Re^2: somethign wrong with the sumbit
in thread somethign wrong with the sumbit
In other words, either do this (flag the param value as utf8):
(updated to fix spelling of "selected_file")use Encode; # add this if you don't have it already if ( param('select') ) { #If User selected an item from the drop do +wn menu my $selected_file = decode('utf8', param('select')); unless ( grep { $_ eq $selected_file } @display_files ) #If User Selection doesn't match one of the passages then its a +Fraud! { ...
Or else this (do the grep with byte semantics):
Note that the "use bytes" pragma is lexically scoped: it applies within the block where you put it.if ( param('select')) { use bytes; unless ( grep {$_ eq param('select') } @display_files ) #If User Selection doesn't match one of the passages then its a +Fraud! { ...
Hope that helps...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: somethign wrong with the sumbit
by Nik (Initiate) on Dec 30, 2007 at 17:29 UTC | |
by graff (Chancellor) on Dec 30, 2007 at 20:03 UTC | |
by Nik (Initiate) on Dec 30, 2007 at 21:31 UTC | |
by graff (Chancellor) on Dec 30, 2007 at 23:32 UTC | |
by Nik (Initiate) on Dec 31, 2007 at 21:17 UTC | |
|