HI Satya,

I'd say skip the sladhes in your join statement.  They shouldn't be necessary.  If you 
wish to quote the elements you could try :
    $env_final[$i] = join ("\", \"", $fields[1], $fields[2], @temp_str - 1);
The important distinction between split and join is that split uses a pattern /$1/, 
while join uses a string "$1" as their first parameter.  Its just another of those 
annoying little quirks of the language.

Joseph

[EMAIL PROTECTED] wrote:

> Can somebody tell what is wrong with this.
>
> I tried single quote (') in place of double quote(") neither of them work.
>
> for ($i = 0; $i < @clm_types; $i++)
> {
>     @temp_str = grep (/$_/,@env_desc);
>     @fields = split (/,/,$temp_str[@temp_str - 1],4);
>     $env_final[$i] = join (/","/,$fields[1],$fields[2],@temp_str - 1);
> }
>
> /","/ should probably be written as "","" at loadstats1.pl line 188.
>
> Satya Devarakonda
> IS - EDI
> Tufts Health Plan
> Tel: 617-923-5587 X 3413
> Fax: 617-923-5555
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to