- or download this
perl -pe 's/^\[//; s/\]$//' < hall
- or download this
while (<>) {
- or download this
print;
}
- or download this
#!/path/to/perl
# (usually, on *nix, the path is /usr/bin/perl)
...
s/\]$//; # the "]" need to be preceded by backslash
print;
}
- or download this
while (<>) {
chomp;
print substr( $_, 1, length() - 2 ), $/;
}