in reply to Detecting packed data
Unicode might make the much harder. Update: did not think of "\n" and "\t". Thanks Zaxosub is_not_string { my $a = shift; my $packed; for (split(//,$a)) { $packed = 1 if (ord($_) == 0); $packed = 1 if (ord($_) > 127); } return $packed; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detecting packed data
by Zaxo (Archbishop) on Apr 10, 2005 at 20:24 UTC |