Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Linear programming is bad

by Ovid (Cardinal)
on Mar 24, 2002 at 22:22 UTC ( #153951=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        #!/usr/bin/perl -w
        use strict;
            print OUT_FILE "$dept,$deptTotals{ $dept }\n";
        close OUT_FILE;
  2. or download this
        #!/usr/bin/perl -w
        use strict;
            close OUT_FILE;
  3. or download this
        my $expenses   = get_expense_data( EXPENSE_FILE );
        my $deptTotals = sum_expenses_by_department( $expenses, FIELDS_PER
    +_RECORD );
        write_report( $deptTotals, EXPENSE_REPORT, REPORT_HEADER );
  4. or download this
        use constant EXPENSE_FILE      => 'expense.dat';
        use constant EXPENSE_REPORT    => 'final_expense.txt';
        my $deptTotals = sum_expenses_by_department($expenses, FIELDS_PER_
        write_report( $deptTotals, EXPENSE_REPORT, REPORT_HEADER );
        write_report( $large_expenses, ERROR_REPORT, ERROR_HEADER );

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://153951]
Approved by root
and the voices are still...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-02-24 21:17 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (363 votes). Check out past polls.