Rob Dixon wrote:
Richard Lee wrote:
say I have
my $var1 = 'abcdefg';
my @array = ( 'abcdefg_3432', 'defg_333', 'abcdefg_' , 'abcdefg_a' );
Let's say I want to go through the array to see if $var1 exists and also
to see if it followed by _ and then 4 digits (only first one should
quailfy
Richard Lee wrote:
> say I have
>
> my $var1 = 'abcdefg';
>
> my @array = ( 'abcdefg_3432', 'defg_333', 'abcdefg_' , 'abcdefg_a' );
>
> Let's say I want to go through the array to see if $var1 exists and also
> to see if it followed by _ and then 4 digits (only first one should
> quailfy , abc
Richard Lee schreef:
> my $var1 = 'abcdefg';
>
> my @array = ( 'abcdefg_3432', 'defg_333', 'abcdefg_' , 'abcdefg_a' );
>
> Let's say I want to go through the array to see if $var1 exists and
> also to see if it followed by _ and then 4 digits (only first one
> should quailfy , abcdefg_3432 )
Richard Lee schreef:
> my $var1 = 'abcdefg';
>
> my @array = ( 'abcdefg_3432', 'defg_333', 'abcdefg_' , 'abcdefg_a' );
>
> Let's say I want to go through the array to see if $var1 exists and
> also to see if it followed by _ and then 4 digits (only first one
> should quailfy , abcdefg_3432 )
>
Richard Lee wrote:
say I have
my $var1 = 'abcdefg';
my @array = ( 'abcdefg_3432', 'defg_333', 'abcdefg_' , 'abcdefg_a' );
Let's say I want to go through the array to see if $var1 exists and also
to see if it followed by _ and then 4 digits (only first one should
quailfy , abcdefg_3432 )
I
Richard Lee wrote:
say I have
my $var1 = 'abcdefg';
my @array = ( 'abcdefg_3432', 'defg_333', 'abcdefg_' , 'abcdefg_a' );
Let's say I want to go through the array to see if $var1 exists and also
to see if it followed by _ and then 4 digits (only first one should
quailfy , abcdefg_3432 )
I
say I have
my $var1 = 'abcdefg';
my @array = ( 'abcdefg_3432', 'defg_333', 'abcdefg_' , 'abcdefg_a' );
Let's say I want to go through the array to see if $var1 exists and also
to see if it followed by _ and then 4 digits (only first one should
quailfy , abcdefg_3432 )
I tried,
for (@array)
Silverfox wrote:
>
> Hi all,
Hello,
> I'm trying to figure out how can I check if a variable matches the
> first 5 digits of the line below without removing anything from the line.
>
> 13384 R 20020920 N Gatekeeper, The
In perl, if a variable looks like a number then perl will treat it as a
nu
Silverfox wrote:
> Hi all, I'm trying to figure out how can I check if a variable matches the
> first 5 digits of the line below without removing anything from the line.
>
> 13384 R 20020920 N Gatekeeper, The
if you are only concern about digits in front of the line, you don't even
need a regex
In a message dated 3/9/2004 3:08:10 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:
>Careful, I believe we want the above capture anchored to the start of
>the line, though I prefer the direct match approach...
You're right about the anchor, but direct match wouldn't be the preferable
method
> In a message dated 3/9/2004 2:43:16 PM Eastern Standard Time,
> [EMAIL PROTECTED] writes:
> >Hi all, I'm trying to figure out how can I check if a variable
matches the
> >first 5 digits of the line below without removing anything from the
line.
> >
> >13384 R 20020920 N Gatekeeper, The
> >
> >
> Hi all, I'm trying to figure out how can I check if a variable matches
the
> first 5 digits of the line below without removing anything from the line.
>
> 13384 R 20020920 N Gatekeeper, The
>
> Silver Fox
>
I'm a bit confused, are you trying to test the line against a variable
or a variable
In a message dated 3/9/2004 2:43:16 PM Eastern Standard Time,
[EMAIL PROTECTED] writes:
>Hi all, I'm trying to figure out how can I check if a variable matches the
>first 5 digits of the line below without removing anything from the line.
>
>13384 R 20020920 N Gatekeeper, The
>
>Silver Fox
use
Hi all, I'm trying to figure out how can I check if a variable matches the
first 5 digits of the line below without removing anything from the line.
13384 R 20020920 N Gatekeeper, The
Silver Fox
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
14 matches
Mail list logo