Re: A more perlish way

2002-02-06 Thread Matt C.
A very nice post. Learned something, thanks! Matt --- Michael Lamertz <[EMAIL PROTECTED]> wrote: > On Wed, Feb 06, 2002 at 03:05:29PM +0100, Jorge Goncalvez wrote: > > I tried this: > > @Symlink=("$program_path\\install.lnk", > > "$program_path\\linux.ram.lnk", > >

Re: A more perlish way

2002-02-06 Thread Michael Lamertz
On Wed, Feb 06, 2002 at 03:05:29PM +0100, Jorge Goncalvez wrote: > I tried this: > @Symlink=("$program_path\\install.lnk", >"$program_path\\linux.ram.lnk", >"$program_path\\alize\\install.lnk", >"$program_path\\alize\\start

Re: A more perlish way

2002-02-06 Thread Matt C.
Also I think you need to put the call to phrase the system command like this: system("rm $_"); But perl has unlink, which is cleaner and could give you style points (this coming from someone who has little perl style, of course!). So you could (should?) just say: foreach (@Symlink) { unlink if

Re: A more perlish way

2002-02-06 Thread Frank
On Wed, Feb 06, 2002 at 03:05:29PM +0100, Jorge wrote: > I tried this: > @Symlink=("$program_path\\install.lnk", >"$program_path\\linux.ram.lnk", >"$program_path\\alize\\install.lnk", >"$program_path\\alize\\startup.txt.lnk