Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by dimitad

  1. dimitad

    How can I write to a remote server

    Hmm but the remote server "server_url" from above requires login and is missing in the code you provided.
  2. dimitad

    How can I write to a remote server

    Hi all, Is there a module or command in Perl that allows you to write/delete files that are on a different machine (both being UNIX) just by providing the url for that machine and the path to the file. I was trying to get it to work with File::Remote but I get an error that the file does not...
  3. dimitad

    What is wrong with this reg expression?

    Thanks a bunch - that saved me some debugging!
  4. dimitad

    What is wrong with this reg expression?

    Hi all, I cant figure out why this regular expression generates an error: s/([0-9a-zA-Z])/"<a href=some.php?id=".process($1)."></a>"/ei ) "process($1)" is a function call but I have the "e" attribute at the end so that its evaluated correctly. The error from this is: Bareword found where...
  5. dimitad

    Need help with pattern matching/replacing

    Thank you!
  6. dimitad

    Need help with pattern matching/replacing

    That works only thing is the functino process_string returns the id of the string. What is the correct way to append that to the url .. something like: s/(stringtofind)/www\.example\.com\/?id=process_string($1)/ie the above gives an error of course ... Thank you for your help!
  7. dimitad

    Need help with pattern matching/replacing

    Hi all, I need to do a very simple replace on a piece of text but the problem is first of all my code needs to find the required string then based on that string look up an id in a database and then replace the string with the following url: www.example.com?id=$id # where $id is from the db...
  8. dimitad

    Need help with regular expression for relative addresses

    Hmmm, sorry but does Javascript have better support for parsing links from a given file?
  9. dimitad

    Need help with regular expression for relative addresses

    Ok, Lets say you have a link on your page called "something.php". The currently available modules will try to locate this link with regular expressions that match tags like: <a href, <img src=, <form action=, and so on. So, if the link "something.php" is contained within one of those tags it...
  10. dimitad

    Need help with regular expression for relative addresses

    Hi all, I have searched for this a lot but with no success. There is a module called LinkExtor which automatically extracts links contained in a web page within tags like "a href" and "src". However, this is not complete since links can be present in other places on a webpage (e.g. javascript)...

Part and Inventory Search

Back
Top