Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 examining the Monastery: (3)
As of 2021-10-24 15:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?