Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: replacing values via web

by le (Friar)
on Jul 18, 2000 at 13:37 UTC ( [id://22961]=note: print w/replies, xml ) Need Help??


in reply to replacing values via web

A quick hack:
opendir(INCLUDES, $includesdir) or die $!; @includefiles = grep (/exclusives\d+\.tmpl$/, readdir(INCLUDES)); closedir INCLUDES; $num_of_files = scalar @includefiles; # ... $num = $num == 1 ? $num_of_files : 1;
This implies that the number in the filenames and the actual count of files go together. (E.g. you don't delete a file in the middle of the row.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2025-02-17 00:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found