Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Split fake, an emulation of split

by bojinlund (Monsignor)
on Jul 31, 2020 at 11:45 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-20 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found