I think:
foreach $value(@fields)
{
    $value = s/\.\-//g;
}
----- Original Message -----
From: "Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 07, 2002 4:02 PM
Subject: global substitution


> Hi all:
>
> I have two files that I am reading into an array, I want to substitute a
> period and a dash,
> actually I want to remove them completely.  Here is my code:
>
> while (my $record = <QUOTEP>){
> my $policies = <POLTEP>;
> my @fields = split( /\t/, $record );
> my @policies = split( /\t/, $policies );
>
> When I need a record I call it from the array @fields[5], etc.  But need
do
> the removing of
> .. and - before I display them.
>
> Thanks,
>
> -Scott
>
>
> --
> 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