Saner has asked for the wisdom of the Perl Monks concerning the following question:
I have this so far.UPDATE channel SET channum="101",xmltvid="9601.dvb.guide" WHERE callsi +gn="RTE One");
but when I run it, it never ends it just seems to hang. If I press enter I get some uninitialized warnings (obviously I can stop these with no warnings 'uninitialized'; ) but it seems to get to this line and then stop.#!/usr/bin/perl use v5.14; use warnings; until(eof()) { my ($id, $chan) = <> =~ /id="([^"]*)".*number="(\d+)"/; my ($sign) = <> =~ />(.*)</; <>; # Skip </channel> say qq(UPDATE channel SET channum="$chan",xmltvid="$id" WHERE call +sign="$sign"); }
Any pointers as to where I am going wrong would be great.channel id="9001.dvb.guide" <!-- number="65535" type="0x95" flags="0xf +fff" bouquet="4109" region="0" sid="9001" -->> <display-name>[65535.9001.(null)]</display-name>
|
|---|