Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Accessing data between two tags

by Skeeve (Parson)
on Nov 09, 2006 at 13:23 UTC ( [id://583095] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (my $line = <SESAME>){
    
      my ($tempa, $value, $tempb)= split m#</?CS_REFCLT>#, $line, 3;
    }
    
  2. or download this
    #!/usr/bin/perl
    
    ...
        my ($t, $elt)= @_;
        push @numbers, $elt->text();
    }