I'm afraid your going to wince when I tell you this...
You simply forgot a comment character:
-----Generate the output string-----
but it should be:
#-----Generate the output string-----
That's why you're getting the "Can't modify negation (-) in predecrement (--) ..." message ;-)
Update: By the way, with Perl programming you can make things easier for yourself by adding two lines to near the beginning of the script:
use strict; use warnings;
Granted you will now get lots of warning messages:
Global symbol "$line2" requires explicit package name at SS7Merge.pl l +ine 37. Global symbol "$date" requires explicit package name at SS7Merge.pl li +ne 38. Global symbol "$number_dialed" requires explicit package name at SS7Me +rge.pl line 39. Global symbol "$line2" requires explicit package name at SS7Merge.pl l +ine 41. Global symbol "$date" requires explicit package name at SS7Merge.pl li +ne 41. Global symbol "$line2" requires explicit package name at SS7Merge.pl l +ine 41. Global symbol "$number_dialed" requires explicit package name at SS7Me +rge.pl line 41. Global symbol "$record_type" requires explicit package name at SS7Merg +e.pl line 42. Global symbol "$carrier_info" requires explicit package name at SS7Mer +ge.pl line 45 ...
but in the long run this will help more than hinder, as your mistakes will be caught early and often.
In reply to Re: Merging specific data from 2 files into a third.
by liverpole
in thread Merging specific data from 2 files into a third.
by sheasbys
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |