in reply to Re^4: Grabbing url from iframe
in thread Grabbing url from iframe

You delimit your regular expression using /, but the replacement part also contains a /. That's unfortunate. Use a different separator for the regular expression, for example !:

$video =~ s!... !... !xeg;

Replies are listed 'Best First'.
Re^6: Grabbing url from iframe
by htmanning (Friar) on Feb 12, 2011 at 21:03 UTC
    You're exactly right. That did it. Thanks so much. This was over my head but that worked! Can someone explain what this last line does. I sort of get it, but not really.
    $1 . "300" . $3 . ((300/$2)*$4) . $5

      Maybe it's now time to learn Perl operators. See perlop for what the operators do.