This is driving me crazy.

I have a flatfile with some data that I parse for display on a webpage. I do not create the flatfile and if I can fix this on my own without dealing the client, all the better.

The data is tab-delimited and for every line but one, it is happy data
EST-NY 234 5-Oct Springfield MA Springfield College +Townhouse Conference Room http://www.spfldcol.edu/home.nsf/welcome +/visit/directionsc EST-NY 923 18-Oct Salisbury MD Wor Wic Community Colleg +e http://www.worwic.edu/campus/directions.pdf EST-NY 886 19-Oct Frederick MD Hood College http +://www.hood.edu/welcome_to_hood/index.cfm?pid=_maps.htm#a1

But I have this one line... that is SW    328    19-Oct    Houston    TX    University of Houston - Clear Lake        "http://prtl.uhcl.edu/portal/page?_pageid=328,217631,328_217645&_dad=portal&_schema=PORTALP"
Note the "'s around the URL. This is causing me problems. I want to get rid of these stupid "'s.

My first instinct is $ddrul =~ s/\"//g; but that isn't working. I've tried searching on replacing quotes, I can find things with single quotes, but those examples don't seem to work.

This seems so obvious. Please prove me oblivious.


In reply to Replacing a pesky pair of quotes. by hmbscully

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.