| Author |
Redirect to another page
|
|
| b_naick@yahoo.ca 2005-08-29, 6:59 pm |
| I need to write a perl script which manufactures a URL based on certain
variables, then redirects to another page..
soemthing like this:
params = 1,5|1,8|2,10
url = "http://mysites.com/myapge.aspx?" + params
redirect(url);
can someone pls provide me with a snipet of code to do this in perl?
I am perl illiterate.. :)
Bijoy
| |
| Paul Lalli 2005-08-29, 6:59 pm |
| b_na...@yahoo.ca wrote:
> I need to write a perl script which manufactures a URL based on certain
> variables, then redirects to another page..
>
> soemthing like this:
>
> params = 1,5|1,8|2,10
> url = "http://mysites.com/myapge.aspx?" + params
> redirect(url);
>
> can someone pls provide me with a snipet of code to do this in perl?
>
> I am perl illiterate.. :)
Are you FAQ illiterate too?
perldoc -q redirect
Found in /opt/perl/lib/5.6.1/pod/perlfaq9.pod
How do I redirect to another page?
Paul Lalli
| |
| b_naick@yahoo.ca 2005-08-29, 6:59 pm |
| oooh sarcasm!
thx neways.
| |
| xhoster@gmail.com 2005-08-29, 6:59 pm |
| b_naick@yahoo.ca wrote:
> I need to write a perl script which manufactures a URL based on certain
> variables, then redirects to another page..
>
> soemthing like this:
>
> params = 1,5|1,8|2,10
> url = "http://mysites.com/myapge.aspx?" + params
> redirect(url);
>
> can someone pls provide me with a snipet of code to do this in perl?
>
> I am perl illiterate.. :)
If you are Perl illiterate and starting code from scratch, then you should
choose a different language (one in which you are not illiterate) in which
to implement this. Or learn Perl from scratch.
On the other hand, if you are not starting from scratch but rather
maintaining existing code, then you should tell us something about this
existing code.
If you are using CGI.pm, which you almost certainly should be, then read
about CGI.pm's "redirect" method. In fact, read all of CGI's docs. There
are plenty of snipets of code therein.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
| |
| Paul Lalli 2005-08-29, 6:59 pm |
| b_naick@yahoo.ca wrote:
> oooh sarcasm!
>
> thx neways.
Please quote some context when composing a reply.
Please do not use "cutsie", instant-message style spelling.
Please read the Perl FAQ before posting.
Please read the comp.lang.perl.misc Posting Guidelines before posting.
Please *do* show some genuine appreciation at my having pointed you
*directly to the answer*!
BAH! And people wonder why the regulars in this group get bent out of
shape so easily.
Slowly counting backwards from 100,
Paul Lalli
| |
| A. Sinan Unur 2005-08-29, 6:59 pm |
| b_naick@yahoo.ca wrote in news:1125341686.185893.69830
@z14g2000cwz.googlegroups.com:
> oooh sarcasm!
>
> thx neways.
>
Hmmmm ... *PLONK*
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/c...guidelines.html
| |
| Scott Bryce 2005-08-29, 6:59 pm |
| b_naick@yahoo.ca wrote:
> oooh sarcasm!
When you reply that way to a perfectly good answer to your question, you
come across as stupid.
> thx neways.
When you spell that way, you come across as illiterate.
Assuming I am wrong, try looking here:
http://www.perldoc.com/perl5.8.4/po...o-another-page-
You are expected to make some attempt at finding the answers on your own
before you post here.
http://mail.augustmail.com/~tadmc/clpmisc.shtml
If after reading the documentation, you still can't figure out the
answer, please post the code you have tried, and we will help you fix it.
| |
| twice_redeemed@yahoo.com 2005-08-29, 6:59 pm |
| Sarcastic idiots like you drive people away from boards
| |
| A. Sinan Unur 2005-08-29, 6:59 pm |
| twice_redeemed@yahoo.com wrote in news:1125346740.242704.181230
@g47g2000cwa.googlegroups.com:
> Sarcastic idiots like you drive people away from boards
This is not a board. This is UseNet.
Oh, by the way, *PLONK*
Next?
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/c...guidelines.html
| |
| b_naick@yahoo.ca 2005-08-29, 6:59 pm |
| I didn't realize that this ng is for Perl experts only.. Your initial
jab at me was unwarranted. What purpose does the following serve?? "Are
you FAQ illiterate too?".
A simple, straight forward, to the point answer was more than
sufficient.. if you find my question or IM style annoying, you didn't
have to respond.
| |
| b_naick@yahoo.ca 2005-08-29, 6:59 pm |
| A perfectly good answer?? what purpose does this serve?? -> "Are you
FAQ illiterate too?"
So everyone who uses an IM style for posting to a forum is illierate?
Some of you start with expect everyone here to be Perl experts, then
slam people with limited Perl knowledge.
| |
| b_naick@yahoo.ca 2005-08-29, 6:59 pm |
| A note to newsgroup ``regulars'':
Do not use these guidelines as a "license to flame" or other
meanness. It is possible that a poster is unaware of things
discussed here. Give them the benefit of the doubt, and just
help them learn how to post, rather than assume
| |
| Gunnar Hjalmarsson 2005-08-29, 6:59 pm |
| b_naick@yahoo.ca wrote:
> I didn't realize that this ng is for Perl experts only.. Your initial
> jab at me was unwarranted. What purpose does the following serve?? "Are
> you FAQ illiterate too?".
A wild guess would be that the purpose was to call your attention to the
posting guidelines for this group.
> if you find my question or IM style annoying, you didn't
> have to respond.
True. Next time Paul probably won't. Neither will a large amount of
other experienced Perl programmers.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
| |
| b_naick@yahoo.ca 2005-08-29, 6:59 pm |
| A simple "Please check the FAQ's before posting" conveys the same
message; in a non-confrontational manner.
| |
| Jürgen Exner 2005-08-29, 6:59 pm |
| b_naick@yahoo.ca wrote:
> A simple "Please check the FAQ's before posting" conveys the same
> message; in a non-confrontational manner.
How often would you like the notice "Please check the FAQ's before posting"
being posted to this NG? At the moment it happens twice w ly. Apparently
that is not enough, so please let us know which frequency you prefer. I am
sure Tad can adjust the schedule for the bot easily.
jue
| |
| Jürgen Exner 2005-08-29, 6:59 pm |
| twice_redeemed@yahoo.com wrote:
> Sarcastic idiots like you drive people away from boards
Whom are you talking to? Would be nice if you would quote some context -as
has been customary for some 20 years- such that people have a chance to know
what you are talking about.
BTW: what board are you talking about?
jue
| |
| Jürgen Exner 2005-08-29, 6:59 pm |
| b_naick@yahoo.ca wrote:
> So everyone who uses an IM style for posting to a forum is illierate?
I don't know. I do know however that people who are using cutesy
abbreviations are very inconsiderate (or to put it bluntly: plain rude) to
those, whose first language is not Americanese and therefore are forced to
read articles with the help of a dictionary.
> Some of you start with expect everyone here to be Perl experts, then
> slam people with limited Perl knowledge.
What does deliberately wrong spelling have to do with Perl expertise?
jue
| |
| Gunnar Hjalmarsson 2005-08-29, 6:59 pm |
| twice_redeemed@yahoo.com wrote:
> Paul Lalli wrote:
>
> Sarcastic idiots like you drive people away from boards
As regards the sarcasm, the OP asked for it.
Both newbies and experienced programmers get excellent help here,
provided that they play by the rules.
People who refuse to comply with the rules may be driven to leave. So what?
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
| |
| Scott Bryce 2005-08-29, 6:59 pm |
| b_naick@yahoo.ca wrote:
> A perfectly good answer?? what purpose does this serve?? -> "Are you
> FAQ illiterate too?"
Paul pointed you to the exact place in the Perl FAQ where your question
was already answered. This NG is not here for the purpose of reading the
FAQ to people. We expect you to be able to read it yourself. If you took
the time to read the FAQ, you would have known that his answer was
perfectly good. In case you weren't familiar with the Perl FAQ (many
perl newbies on Windows systems aren't) I posted a URL to the
appropriate place in the FAQ at perldoc.com. You really couldn't get a
better answer than you already got here.
> So everyone who uses an IM style for posting to a forum is illierate?
You misspelled half the words in your post. English is not the first
language for many of the regulars here. This isn't IM. You are expected
to use correct English here, if you want to be understood.
> Some of you start with expect everyone here to be Perl experts, then
> slam people with limited Perl knowledge.
No. We are very happy to help people who are just learning. We aren't,
however, eager to help people who don't show any interest in putting
forth a little effort to find the answers to their own questions, even
after being show exactly where to look.
Your behavior here has been very rude. It is beyond me how people can
barge in here like they own the place, insult some of the best Perl
minds in the world, expect us to write their code for them, then
complain when they can't get help!
| |
| xhoster@gmail.com 2005-08-29, 6:59 pm |
| twice_redeemed@yahoo.com wrote:
> Sarcastic idiots like you drive people away from boards
There are some types of posters whom we desire to drive away from this
particular "board".
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
| |
| b_naick@yahoo.ca 2005-08-29, 9:56 pm |
| Judging from some of the responses to my question and some others, it
seem like being arrogant is a pre-requisite to posting on this group.
what's with all the sarcastic responses?
"oooh sarcasm" is rude.. but "Are you FAQ illiterate too? " isn't.??
what about "A wild guess would be that the purpose was to call your
attention to the
posting guidelines for this group." Folks can't respond with simple
sentences?
"As regards the sarcasm, the OP asked for it".. WTF??? If you find
some posts to be not response worthy, don't respond.. no need to
respond in an arrogant/sarcastic manner.
To give you some background.. my perl knowledge is close to ZERO. I
asked the question because a colleage of mine is having trouble
"redirecting" the script to my asp page. I figured we could get a quick
response by asking the people who deal with perl a lot.. Instead all I
get is accusations of being rude and a whole lot of sarcasm.
| |
| b_naick@yahoo.ca 2005-08-29, 9:56 pm |
| more sarcasm.. thx
| |
| xhoster@gmail.com 2005-08-29, 9:56 pm |
| b_naick@yahoo.ca wrote:
>
> To give you some background.. my perl knowledge is close to ZERO. I
> asked the question because a colleage of mine is having trouble
> "redirecting" the script to my asp page. I figured we could get a quick
> response by asking the people who deal with perl a lot.. Instead all I
> get is accusations of being rude and a whole lot of sarcasm.
Liar liar pants on fire. You got several very helpful answers.
Apparently, you choose to ignore them because they were not delived to you
according to your exacting standards. That doesn't change the fact that
you did get those answers, in addition to sarcasm and (truthful)
accusations.
In the future, perhaps you should hire a Perl consultant. They may or may
not give you better answers than you have gotten here, but they probably
will refrain from exposing you to the harsh truth. Afterall, programming
Perl is fun--putting up with people like you with good grace is why
consultants demand money.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
| |
| Scott Bryce 2005-08-29, 9:56 pm |
| b_naick@yahoo.ca wrote:
> If you find some posts to be not response worthy, don't respond.
You were given 2 very valid answers to your question. Did you
follow the link I posted earlier? If you did, you would have found 2
different ways to do what you want to do.
> I asked the question because a colleage of mine is having trouble
> "redirecting" the script to my asp page.
Perhaps he should be the one asking the question? If he has very much
perl experience, maybe he would recognize that the answer to your
question has already been posted in this thread at least twice.
> I figured we could get a quick response by asking the people who deal
> with perl a lot..
You did get a quick response. You got two quick responses telling you
exactly where to look for an answer to your question.
OK, you are Perl illiterate. Perhaps that means that you don't know what
perldoc is. Perhaps Paul's answer didn't make a lot of sense to you.
just do this: tell your friend who is writing the Perl script to look at
this page:
http://www.perldoc.com/perl5.8.4/po...o-another-page-
He will find everything he needs to know about redirects in Perl. If he
still can't make it work, have him trim his code down to the shortest
complete script that demonstrates the problem and post it here. We will
help him fix it.
And please tell him to read the posting guidelines before posting. If he
plays by the rules, he will find the people here very helpful.
| |
| Gunnar Hjalmarsson 2005-08-30, 3:56 am |
| b_naick@yahoo.ca wrote:
> what about "A wild guess would be that the purpose was to call your
> attention to the
> posting guidelines for this group." Folks can't respond with simple
> sentences?
>
> "As regards the sarcasm, the OP asked for it".. WTF??? If you find
> some posts to be not response worthy, don't respond.. no need to
> respond in an arrogant/sarcastic manner.
I get the feeling that my comments weren't appreciated.
You seemed to believe that you could jump into a group like this and
expect everyone to play by your rules. Now you've hopefully learned that
it doesn't work that way.
Next time you'll maybe find out what the rules are and try to play by
them. I can assure you that doing so will make you a much happier fellow. :)
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
| |
| Anno Siegel 2005-08-30, 7:56 am |
| <b_naick@yahoo.ca> wrote in comp.lang.perl.misc:
> "As regards the sarcasm, the OP asked for it".. WTF??? If you find
> some posts to be not response worthy, don't respond.. no need to
> respond in an arrogant/sarcastic manner.
You said this before, but you are wrong. As a passer-by you can
afford to ignore annoying posts. As regulars we have a vested
interest in what's going on on the newsgroup, so there is a reason
to let it be known.
> To give you some background.. my perl knowledge is close to ZERO. I
You said so in your first posting. Translation: "I don't know
Perl, and I don't want to learn any. Don't bother me with details,
just give me the code I need".
Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
| |
| Tad McClellan 2005-08-30, 7:56 am |
| b_naick@yahoo.ca <b_naick@yahoo.ca> wrote:
> then redirects to another page..
perldoc -q redirect
> I am perl illiterate.. :)
That's OK, everybody has to start somewhere.
Being Usenet illiterate when posting to Usenet isn't so OK though.
You should check the Frequently Asked Questions for a newsgroup
before posting to that newsgroup. This expectation is widely
accepted in nearly all newgroups, not just the Perl newsgroup.
If you insist on taking cuts in line, then you should be
expecting to get some grief for it.
In article <1995Nov9.193745.13694@netlabs.com>, lwall@netlabs.com
(Larry Wall) wrote: ...
[snip] I view a programming language as a place to be
explored, like Disneyland. You don't need to have a lot of preparation
to explore a theme park. You do have to go along with the crowd
control measures, though. In a sense, each ride has its own
prerequisites--if you cut in line, you risk getting tossed out of the
park.
What we have here in this newsgroup is a failure in crowd control.
Reading the FAQ is like staying in line--it's something you should
learn in kindergarten. Usenet needs a better kindergarten.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
| |
| Matt Garrish 2005-08-30, 7:56 am |
|
<b_naick@yahoo.ca> wrote in message
news:1125347313.034691.235350@g47g2000cwa.googlegroups.com...
>I didn't realize that this ng is for Perl experts only.. Your initial
> jab at me was unwarranted. What purpose does the following serve?? "Are
> you FAQ illiterate too?".
>
Welcome to Usenet. I occasionally take offence the posting style of some
people here, but not in this instance. You didn't bother to make the least
bit of effort to answer your own question, and then set yourself up for a
sarcastic response by pretending your ignorance of the language gives you
the right to post a faq question. You are expected to do your own homework
before posting here. If you think this is the place to ask any question that
pops into your head then you better work on toughening up your skin.
Matt
|
|
|
|