Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Better way of finding HTML tags positions in HTML string (updated)

by haukex (Chancellor)
on May 15, 2019 at 20:43 UTC ( #11100039=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::Temp qw/tempfile/;
    
    ...
    close $tfh;
    
    # File named $tfn will exist till end of program
    
  2. or download this
    use File::Basename qw/fileparse/;
    use File::Temp qw/tempfile/;
    ...
    my ($tfh,$tfn) = tempfile(DIR=>$dir, TEMPLATE=>'.'.$fn.'_XXXXXXXXXX',
        SUFFIX => $ext, UNLINK=>1 );
    ...
    
  3. or download this
    use File::Temp qw/tempdir/;
    use File::Basename qw/fileparse/;
    ...
    my $tmpdir = tempdir(DIR=>$dir, TEMPLATE=>'.XXXXXXXXXX', CLEANUP=>1 );
    my $tfn = catfile($tmpdir, $fn);
    ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11100039]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2019-12-09 19:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?