On 3/3/07, Rob Dixon <[EMAIL PROTECTED]> wrote:
Jay Savage wrote:
[snip]
>> The LIMIT parameter can be used to split a line partially
>>
>> ($login, $passwd, $remainder) = split(/:/, $_, 3);
>>
>> When assigning to a list, if LIMIT is omitted, or zero, Perl
>>
Jay Savage wrote:
>
> On 3/3/07, John W. Krahn <[EMAIL PROTECTED]> wrote:
>>
>> Jay Savage wrote:
>>>
>>> On 3/2/07, Robert Boone <[EMAIL PROTECTED]> wrote:
I think this is all you do:
$piid = (split(/\t/, $row))[0];
>>>
>>> Split also takes an optional limit that keeps it from
Jay Savage wrote:
> On 3/3/07, John W. Krahn <[EMAIL PROTECTED]> wrote:
>> Jay Savage wrote:
>> > On 3/2/07, Robert Boone <[EMAIL PROTECTED]> wrote:
>> >> I think this is all you do:
>> >>
>> >> $piid = (split(/\t/, $row))[0];
>> >
>> > Split also takes an optional limit that keeps it from splittin
On 3/3/07, John W. Krahn <[EMAIL PROTECTED]> wrote:
Jay Savage wrote:
> On 3/2/07, Robert Boone <[EMAIL PROTECTED]> wrote:
>> I think this is all you do:
>>
>> $piid = (split(/\t/, $row))[0];
>
> Split also takes an optional limit that keeps it from splitting the
> string into more than n parts.
Jay Savage wrote:
> On 3/2/07, Robert Boone <[EMAIL PROTECTED]> wrote:
>> I think this is all you do:
>>
>> $piid = (split(/\t/, $row))[0];
>
> Split also takes an optional limit that keeps it from splitting the
> string into more than n parts. This keeps spilt from performing
> useless operations
On 3/2/07, Robert Boone <[EMAIL PROTECTED]> wrote:
I think this is all you do:
$piid = (split(/\t/, $row))[0];
*Please don't top post.*
Split also takes an optional limit that keeps it from splitting the
string into more than n parts. This keeps spilt from performing
useless operations when
I think this is all you do:
$piid = (split(/\t/, $row))[0];
On Mar 2, 2007, at 3:07 PM, Shawn Milo wrote:
Considering the following:
@temp = split(/\t/, $row);
$piid = $temp[0];
Is it possible to cut this down to one line, similar to the following
Python code?
piid = row.split('\t')[0]
T
$piid = (split(/\t/, $row))[0]
On 3/2/07, Shawn Milo <[EMAIL PROTECTED]> wrote:
Considering the following:
@temp = split(/\t/, $row);
$piid = $temp[0];
Is it possible to cut this down to one line, similar to the following
Python code?
piid = row.split('\t')[0]
Thank you,
Shawn
--
To unsubsc