Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

RE: RE: Warning our Fellow Monks

by Ovid (Cardinal)
on Oct 12, 2000 at 00:05 UTC ( #36306=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %files = ( colors => 'colors.dat',
                  tests  => 'test.txt',
    ...
    
    open IN, "<$filepath/$files{$siteinfo[1]}" or
        someErrorRoutine( "Can't open $filepath/$siteinfo[1] for reading: 
    +$!" );
    
  2. or download this
     
    $siteinfo[1] =~ /^[^.]+/(\w+\.\w+)$/ or
        someErrorRoutine( "Regex failed" );
    my $fileToOpen = $1; # $fileToOpen untainted
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2021-08-02 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (19 votes). Check out past polls.

    Notices?