in reply to Re: Changing -> to work within a string
in thread Changing -> to work within a string

my $directory = concat($machine->work_dir, "/subdir/", $machine->software_version, "/");

That sounds an awful lot like perl's built in join function, called like so:

my $directory = join "", $machine->work_dir, "/subdir/", $machine->sof +tware_version, "/";

cheers
davis
It's not easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day.

Replies are listed 'Best First'.
Re: Re: Re: Changing -> to work within a string
by Marcello (Hermit) on Mar 19, 2003 at 13:43 UTC
    In fact, it is. I suggested writing a function that takes care of this because:

    1. you can alter the function in the future
    2. you can give it a more user-friendly name if wanted

    Regards,
    Marcel