Help for this page

Select Code to Download


  1. or download this
      $_='something,something else';
      @_ = shift split /,/;
    
  2. or download this
    use strict;
    use warnings;
    ...
    
    (my $first,undef)=split /,/,'foo,bar',2;
    say $first;