Problem with input record separator

2003-09-21 Thread Daniel Liston
Here is a tool I use to unfold long lines in LDAP outputs. It also works on mailboxes that have the Received: lines or Content-*: lines folded. #!/usr/bin/perl #syntax: unfold.pl filename > newfilename if ($ARGV[0]) { local $/ = ''; open(FILE, "<$ARGV[0]") or die "can't open $ARGV[0]: $!\

Re: Problem with input record separator

2003-09-22 Thread Daniel Liston
Daniel Liston wrote: Here is a tool I use to unfold long lines in LDAP outputs. It also works on mailboxes that have the Received: lines or Content-*: lines folded. There are two things in your code that may cause a problem. #!/usr/bin/perl #syntax: unfold.pl filename > newfilename