Help for this page

Select Code to Download


  1. or download this
    $_ = 'apple,banana,cherry';
    print "Say ", (m!([^,]+)!g)[ scalar rand 1 + (tr!,!!) ], "\n";
    
  2. or download this
    $foo = 'apple,banana,cherry';
    print "Say ", ($foo =~ m!([^,]+)!g)[ scalar rand 1 + (tr!,!!) ], "\n";