in reply to chomp not working
I'm not sure what those characters are, but when I am trying to identify unusual characters, I use the ord function:
Once you identify the characters, it will be easier to figure out a way of eliminating them.#!/usr/bin/env perl use warnings; use strict; my $str = 'abcde'; for (split //, $str) { print "$_:", ord $_, ":\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: chomp not working
by djbryson (Beadle) on Dec 07, 2007 at 14:55 UTC |