Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

How to Split on specific occurrence of a comma

by dirtdog (Monk)
on Dec 03, 2020 at 21:13 UTC ( #11124600=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open INPUT_FILE, @row[$cell_column] or die "Can't open @row[$cell_colu
    +mn]: $!\n";
                    while ( $line = <INPUT_FILE> ) {
    ...
                    $i++;
                    }
            $sthL->finish;
    
  2. or download this
    #!/usr/bin/env perl
    use DBI;
    ...
    
    __DATA__
    Teams=PATRIOTS,BILLS,DOLPHINS,JETS,COWBOYS,GIANTS,EAGLES,REDSKINS,BENG
    +ALS,OILERS,STEELERS,BROWNS,SEAHAWKS,RAMS,49ERS,RAIDERS
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11124600]
Approved by marto
Front-paged by thomas895
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-10-18 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (72 votes). Check out past polls.

    Notices?