Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Inserting, update and deleteting a database under conditions

by Nik (Initiate)
on Jan 10, 2008 at 17:05 UTC ( [id://661658]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Inserting, update and deleteting a database under conditions
in thread Inserting, update and deleteting a database under conditions

If only was that easy

I tried out but 'grep' doesn't strip the filename out of the bigger string, now pop up menu has entries like this:

D:/www/data/text/name_of_the_file.txt

Replies are listed 'Best First'.
Re^5: Inserting, update and deleteting a database under conditions
by blazar (Canon) on Jan 15, 2008 at 14:25 UTC

    I personally believe that then you should explain what it is that you want. Based on other nodes in this thread, I suppose that that's 'name_of_the_file.txt'. In that case, I would do:

    # untested use File::Basename; my @menu_files = map { my $n=basename $_; $n =~ /\.txt$/ ? $n : () } @files;
    --
    If you can't understand the incipit, then please check the IPB Campaign.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-28 15:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found