On Fri, Jun 13, 2003 at 03:09:20PM -0700 R. Joseph Newton wrote: > Tassilo von Parseval wrote: > > > > chomp; > > > > I don't think that the entries in @ARGV contain newlines at the end. > > Actually I know they don't. :-) > > > > That's good. and that is why chomp is an excellent choice for this context. > Because the OP may not know, or be sure of, that fact. The chomp function is > custom-designed for cases of uncertainty,.and is perfectly safe in cases where > there is no tail-junk to remove. Please don't discourage its use.
I was not discouraging its use. I was rather pointing out that @ARGV does (usually) not contain trailing newlines. chomp() should be used when - conceptually - there could be something to remove. In case of filenames however you either don't have anything to remove or you don't want to remove it. That way this chomp() could even be wrong (as John remarked in his follow-up). Tassilo -- $_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({ pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#; $_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]