Jenda Krynicky wrote:
From: "Chas. Owens" <[EMAIL PROTECTED]>
On Oct 24, 2008, at 11:00, "Sharan Basappa" <[EMAIL PROTECTED]>
wrote:
I was just trying to match a string and save it in a single statement
as follows:
$extracted = "cp xyz";
$state_var = $extracted =~ m/cp\s+(.*)/;
print "$state
From: "Chas. Owens" <[EMAIL PROTECTED]>
> On Oct 24, 2008, at 11:00, "Sharan Basappa" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi,
> >
> > I was just trying to match a string and save it in a single statement
> > as follows:
> >
> > $extracted = "cp xyz";
> > $state_var = $extracted =~ m/cp\s+(.*)/;
>
> On Fri, Oct 24, 2008 at 8:42 PM, Chas. Owens <[EMAIL PROTECTED]> wrote:
>>
>>
>> On Oct 24, 2008, at 11:00, "Sharan Basappa" <[EMAIL PROTECTED]>
>> wrote:
>>
>>> Hi,
>>>
>>> I was just trying to match a string and save it in a single statement
>>> as follows:
>>>
>>> $extracted = "cp xyz";
>
> I was just trying to match a string and save it in a single statement
> as follows:
>
> $extracted = "cp xyz";
> $state_var = $extracted =~ m/cp\s+(.*)/;
> print "$state_var $1 \n";
>
> The output is: 1 xyz
>
> So the assignment to $state_var does not work. Is this an incorrect way.
>
The
On Fri, Oct 24, 2008 at 8:42 PM, Chas. Owens <[EMAIL PROTECTED]> wrote:
>
>
> On Oct 24, 2008, at 11:00, "Sharan Basappa" <[EMAIL PROTECTED]>
> wrote:
>
>> Hi,
>>
>> I was just trying to match a string and save it in a single statement
>> as follows:
>>
>> $extracted = "cp xyz";
>> $state_var = $ex
On Oct 24, 2008, at 11:00, "Sharan Basappa" <[EMAIL PROTECTED]>
wrote:
Hi,
I was just trying to match a string and save it in a single statement
as follows:
$extracted = "cp xyz";
$state_var = $extracted =~ m/cp\s+(.*)/;
print "$state_var $1 \n";
The output is: 1 xyz
So the assignment t
On Fri, Oct 24, 2008 at 5:00 PM, Sharan Basappa <[EMAIL PROTECTED]>wrote:
> Hi,
>
> I was just trying to match a string and save it in a single statement
> as follows:
>
> $extracted = "cp xyz";
> $state_var = $extracted =~ m/cp\s+(.*)/;
> print "$state_var $1 \n";
>
> The output is: 1 xyz
>
> So
Hi,
I was just trying to match a string and save it in a single statement
as follows:
$extracted = "cp xyz";
$state_var = $extracted =~ m/cp\s+(.*)/;
print "$state_var $1 \n";
The output is: 1 xyz
So the assignment to $state_var does not work. Is this an incorrect way.
Regards
--
To unsubscr