in reply to javascript, perl, and single quotes

First: You are using Javascript which was formally known as LiveScript by Netscape and currently also known as ECMA script and not Java by Sun Microsystem.

When you use $file_to_remove you interpret the "\n", and you need to escape that in order to appear in alert(). So put

from ...your accunt if they exist: \\n". join ... 

artist.

  • Comment on Re: javascript, perl, and single quotes

Replies are listed 'Best First'.
Re: Re: javascript, perl, and single quotes
by Petras (Friar) on Jul 04, 2003 at 02:52 UTC
    I've often wondered why a group of European Computer Manufacturers think they have the right to rename Netscape's scripting language after themselves...
    Don't worry about people stealing your ideas. If your ideas are any good, you'll have to ram them down people's throats.

    -Howard Aiken

      God knows maybe it was not "European Computer Manufacturers Association" but European Carton Makers Association ;-)

      Jenda
      Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
         -- Rick Osborne

      Edit by castaway: Closed small tag in signature

Re: Re: javascript, perl, and single quotes
by jcpunk (Friar) on Jul 03, 2003 at 20:06 UTC
    thank you that is it exactly (sorry for the not terribly perl related post)
    thank you for spending your time answering that
    jcpunk

    by the way thanks for all the help that was, is, and will be