Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
3 Months Ended
Jan. 31, 2016
Jan. 31, 2015
CASH FLOWS FROM OPERATING ACTIVITIES:    
Net income $ 7,895 $ 476
Adjustments to reconcile net income to net cash used in operating activities:    
Depreciation and amortization 7,365 9,014
Change in LIFO reserve (4,438) (9,362)
Amortization of debt fees 239 238
Provision for losses on accounts receivable and inventories 64 123
Change in deferred income taxes (866) 17
Share-based compensation expense 1,876 1,326
Other 94 101
Changes in operating assets and liabilities:    
Decrease in accounts receivable 11,009 15,769
(Increase) decrease in inventories (470) 3,436
(Increase) decrease in other current assets (1,534) 358
(Increase) decrease in other assets (65) 15
Decrease in accounts payable (17,238) (4,675)
Decrease in accrued expenses (5,260) (2,078)
Increase in other long-term liabilities 14 6
Net cash (used in) provided by operating activities (1,315) 14,764
CASH FLOWS FROM INVESTING ACTIVITIES:    
Capital expenditures (4,068) (2,952)
Net proceeds from dispositions of property, plant and equipment 1  
Net cash used in investing activities (4,067) (2,952)
CASH FLOWS FROM FINANCING ACTIVITIES:    
Net repayments on credit facility   (10,410)
Repayments of Pennsylvania industrial loan (22) (21)
Principal payments on capital lease obligations (537) (646)
Principal payments on mortgage loan note (33) (32)
Fees paid and capitalized related to amended credit facility (450)  
Proceeds from exercise of stock options 68 38
Payments of withholding taxes on performance units (1,945) (713)
Net cash used in financing activities (2,919) (11,784)
EFFECTS OF EXCHANGE RATE CHANGES ON CASH (188) (338)
Net decrease in cash (8,489) (310)
CASH AND CASH EQUIVALENTS AT BEGINNING OF PERIOD 20,167 867
CASH AND CASH EQUIVALENTS AT END OF PERIOD 11,678 557
SUPPLEMENTAL CASH FLOW DISCLOSURE:    
Cash paid during the period for interest 128 496
Cash paid during the period for income taxes 3,320 $ 325
Cash dividend declared $ 1,277