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. >>> "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] > >