Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re3: Bottom-Up Data Mining with Perl

by dragonchild (Archbishop)
on Mar 10, 2003 at 15:32 UTC ( [id://241742]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my @items = split $delim, $line;
    #### vs. (and I know this will make mistakes
        my @items = $line =~ /^?([^$delim]*)(?:${delim}$)?/g;
    
  2. or download this
    my @columns = ( 20, 10, 25, 5, 2, 2, 20);
    my $regex = map { "(.{$_})" } @columns;
    $regex = qr/^${regex}$/;
    
    my @items = $line =~ /$regex/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://241742]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-23 11:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found