LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-22-2005, 11:13 AM   #1
dav_y2k
LQ Newbie
 
Registered: Apr 2005
Distribution: RedHat
Posts: 16

Rep: Reputation: 0
running perl script


Hi,
I am a newbie in perl script programming and I designed a page (using NVU) with a form where u enter a URL and a Description and the results are displayed with the date and times when each input is being entered, my problems are:

1) how do I remove the hypertext transport protocol : // from being entered into the URL text box using regexp

2) when I click on the submit button it displays the result url, description, date, and time. how do I display the result in my index.html page (or any page that I designed)

thanks
 
Old 04-22-2005, 02:13 PM   #2
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
ad 1) for example:

Code:
$url="http://www.linuxquestions.org";
$url=~m#http://(.*)#;
$newUrl=$1;
 
Old 04-22-2005, 02:16 PM   #3
Vookimedlo
Member
 
Registered: Jul 2004
Location: Czech Republic - Roudnice nad Labem
Distribution: Debian
Posts: 253

Rep: Reputation: 33
or more simple

Code:
$url="http://www.linuxquestions.org";
$url=~s#http://(.*)#$1#;
 
Old 04-25-2005, 06:00 AM   #4
dav_y2k
LQ Newbie
 
Registered: Apr 2005
Distribution: RedHat
Posts: 16

Original Poster
Rep: Reputation: 0
Hey thanks vokimedllo it worked.
I'm really grateful
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a Perl script with SendMail NewByy Linux - Newbie 4 08-25-2005 02:02 PM
Running a Perl script with SendMail NewByy Programming 2 08-25-2005 10:56 AM
Running a perl script bobfinners Linux - Software 1 06-23-2005 06:18 PM
Running Perl Script upon startup andy7t Linux - Software 1 04-20-2005 05:43 PM
Perl script not running on FreeBSD J_Szucs *BSD 12 07-13-2002 10:05 AM


All times are GMT -5. The time now is 06:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration