in reply to split post match

There are several. Here's a couple off the top of my head...
# 1 my @array = split /pattern/, $file_content; shift @array; # 2 my ($dummy_var,@array) = split /pattern/, $file_content;
cLive ;-)

Replies are listed 'Best First'.
Re: Re: split post match
by shotgunefx (Parson) on Jun 21, 2001 at 14:12 UTC
    Just a thought, instead of using a dummy variable, you would be better off saying
    my (undef,@array) = split /pattern/, $file_content;


    -Lee

    "To be civilized is to deny one's nature."