Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Split fake, an emulation of split

by bojinlund (Prior)
on Jul 31, 2020 at 11:45 UTC ( #11120124=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    use strict;
    ...
    
    !!1;
    
  2. or download this
    
    use strict;
    ...
    is_deeply splitF_test("", "ab");
    is_deeply splitF_test(";", "a;b");
    
  3. or download this
    if (   $field_start == $field_end
                && $sep_aref
    ...
                info('SKIP intermediate field+separator, both are empty');
                next;
            }
    
  4. or download this
    # while ( my $rv = $$str_ref =~ m{$pat_re}gc ) { does not work
    # but this works:
    my $str = $$str_ref;
    while ( my $rv = $str =~ m{$pat_re}gc ) {
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://11120124]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2020-10-29 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (269 votes). Check out past polls.

    Notices?