Hi John,

I tried like this,   where $line='*Options=-a"hello" -mt -ml3 -i"dir1\dir2"
-k -p -i"dir3\dir4" -m'*



if (grep/^Options/,$line)
{

@inc=split(/-i/,$line);

foreach $word (@inc)
{
print "$word\n";
}



I do not know how to proceed after this.....


Thanks for your quick reply...



Thanks
Umesh




On 12/15/05, John Doe <[EMAIL PROTECTED]> wrote:
>
> Umesh T G am Donnerstag, 15. Dezember 2005 13.00:
> > Hi List,
>
> Hi Umesh
>
> > I want to get that value of *-i* set in below line.
> >
> > *Options=-a"hello" -mt -ml3 -i"dir1\dir2" -k -p -i"dir3\dir4" -m*
> >
> > What is the best way to get the value of *-i* values into one
> array.  For
> > ex:  I want the output as:   *dir1\dir2*   and *dir3\dir4*  into one
> array.
>
> What possibilities did you try (show us some code), from which the best
> could be choosed, or to which a better could be added?
>
> joe
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
>

Reply via email to