> > Hi Dan, > I did as you suggested. > print "<a href=\"http://www.cnn.com\">Click here</a>"; > I don't get any compilation error, email goes fine to my > groupwise mailbox. When I open hte mail, I see the raw html. > <a href=http://www.cnn.com>Click here</a > But I wanted only the "Click here" to be in the mail instead > of the link.
Well you didn't say it was an email your formatting! Remember , when you post to a list, most of us can't read minds so you need to explain more what you are trying to do, how you've tried to do it, etc... Read this, and you'll probably get better help faster and be able to help better also : http://www.tuxedo.org/~esr/faqs/smart-questions.html Any hoo onto your question... Are you adding a header to the mail that tells it that it's an html email? If not then you're just sending some text that happens to look a lot like html. How do you do that you ask? Depends on how your making the mail. Are you using modules? Which one(s)? How about the code you're using? Have you look at cpan and searched for 'email' and read any documentation/examples? Most of the time I can find answers to my problems by trying that first, then if there's something I don't understand I'll post to a list and show them what I tried and what I need to do. > >>> "Dan Muey" <[EMAIL PROTECTED]> 01/24/03 01:26PM >>> > > > > > Hello folks, > > I am having a problem of embedding the html tag > > <a href=http://www.cnn.com >Click here</a> in a perl script. > > Could someone please help . > > Always change the subject when you're doinhg a new post. > > What problem are you having? > First off make the thml correct: > <a href="http://www.cnn.com">Click here</a> > Second : > > print '<a href="http://www.cnn.com">Click here</a>'; # with > single quotes print "<a href=\"http://www.cnn.com\">Click > here</a>"; # with double quotes Notice the backslashes in > front of the double quotes in the double quoted string That > escapes them, or treats them as literl " instead of seeing > them as how perl is using them for a print statement > > EG doing this : > print "<a href="http://www.cnn.com">Click here</a>"; > Is just the same as doing : > > > print "<a href=" > http://www.cnn.com > ">Click here</a>"; > > Firstline is missing an ending ';' > Second line is a bareword > Third line has nothing to tell it what todo with the "" string > > > > > > Thanks. > > Deepa > > > > >>> <[EMAIL PROTECTED]> 01/24/03 01:01PM >>> > > > > >I have a list of inspection stations in a data file which is > > >comma-separated. It contains the following data, in order: Station > > >Name, Address 1, Address Line 2, City, State, Zip, Phone > > Number > > > > > >I need to group the lines (of address information) by city and get > a > > count > > > > >of the number of stations in a given city. > > > > OK, I didn't actually test this exact code, but it should > > present the idea of storing this information in an array of arrays: > > > > open IN, yourfile; > > while (<IN>){ > > chomp; > > push @arr, \[split /,/]; > > } > > close IN; > > @arr = sort ${$arr[$a]}[3] <=> ${$arr[$b]}[3] @arr; # sort > by > > city > > > > How do you picture using a hash of hashes of arrays? > > > > > > > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]