On Jun 30, 1:12 pm, u...@stemsystems.com ("Uri Guttman") wrote:
> > "SF" == Shlomi Fish writes:
>
> >> my @vv = split('-',$variable);
> >> my @vale = split('##',$variable);
>
> SF> Why are you splitting on strings instead of on regexes? << split(/##/,
> SF> $variable); >>
>
> that IS s
> "SF" == Shlomi Fish writes:
>> my @vv = split('-',$variable);
>> my @vale = split('##',$variable);
SF> Why are you splitting on strings instead of on regexes? << split(/##/,
SF> $variable); >>
that IS splitting on regexes. split's first arg is always used as a
regex. yes, it is b
Shlomi Fish wrote:
On Wednesday 30 Jun 2010 13:52:19 Chaitanya Yanamadala wrote:
try this..
now to get the $variable,
read each line of the file by just opening it..
in this one only thing u need to do is value of $j
Let me comment on your code.
1. Please show us all your code, not just
hai Shlomi
Thank you for your long reply...
1. Please show us all your code, not just part of it.
A. This is the complete code i am using..
2. Add "use strict;" and "use warnings;" to the beginning and fix all the
problems it reports..
A. I have added warnings but not strict..
3. Why are you
On Wednesday 30 Jun 2010 13:52:19 Chaitanya Yanamadala wrote:
> try this..
>
> now to get the $variable,
> read each line of the file by just opening it..
> in this one only thing u need to do is value of $j
>
Let me comment on your code.
1. Please show us all your code, not just part of it
try this..
now to get the $variable,
read each line of the file by just opening it..
in this one only thing u need to do is value of $j
$variable = "name1##Thu Oct 18 14:33:23 2007##2007-10-18
14:33:23.0-0400";
my @vv = split('-',$variable);
my @vale = split('##',$variable);
print
On Wednesday 30 Jun 2010 05:29:17 Pad wrote:
> I'm trying to use the logic in my script that allows me to catch a
> line that differs in time by comparing field2 and field3. I managed
> to come up with an input file of this format for my comparison
> purpose:
>
> name1##Thu Oct 18 14:33:23 2007
I'm trying to use the logic in my script that allows me to catch a
line that differs in time by comparing field2 and field3. I managed
to come up with an input file of this format for my comparison
purpose:
name1##Thu Oct 18 14:33:23 2007## 2007-10-18 14:33:23.0
-0400
name2##Thu Feb