fork download
  1. #!/usr/bin/perl
  2. # your code goes here
  3.  
  4. sub isSupportedProductGroup{
  5. my ($productGroup) = @_;
  6.  
  7. my $isSupported = 0;
  8.  
  9.  
  10. if($productGroup) {
  11. isSupported = 1;
  12. }
  13.  
  14. return $isSupported;
  15. }
  16.  
  17. $x =isSupportedProductGroup(x1);
  18. print ("Return value is $x\n" );
Runtime error #stdin #stdout #stderr 0s 17496KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Can't modify constant item in scalar assignment at prog.pl line 11, near "1;"
Execution of prog.pl aborted due to compilation errors.