Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Splitting a string on commas except when inside quotes

by Tux (Canon)
on Jan 02, 2023 at 17:11 UTC ( [id://11149294]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
           "  Currency: %s;  Amount: %s;  PaidOut: %s; Fees: %s;\n",
        $fDate, $fType, $fDetails,
        $fRef, $fCurrency, $fAmount, $fPaidOut, $fFees;
    
  2. or download this
    my $aoa = csv (in => \$line);
    
  3. or download this
    my $aoa = csv (in => $file);
    
  4. or download this
    foreach my $record (@$aoa) {
        my ($date, $type, $dtls, $ref, $curr, $amt, $paid, $fees) = @$reco
    +rd;
        ...;
        }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2024-04-25 12:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found