"John W. Krahn" wrote:

> "R. Joseph Newton" wrote:
> >
> > "Leaw, Chern Jian" wrote:
> > >
> > > $currDir = `pwd`;
> > > chomp($currDir);
> >
> > Don't use chomp here.  The chomp function is for situations where
> > you may not know whether a line is terminated by a newline.  You
> > just assigned a value to pwd, so it is pointless to then chomp it.
>
> The output from running a command in backticks

Duuh, Whoops, plumb forgot those little farts existed.  I stand corrected.

Joseph


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to