Re: List of Available Modules ... ???

2010-06-04 Thread Chaitanya Yanamadala
Try this instead $perl -MFile::Find=find -MFile::Spec::Finction -lwe | find(wanted=>sub{print canonpath $_ if /\.pm\z/}, no_chdir=>},@INC' Chaitanya On Sat, Jun 5, 2010 at 7:58 AM, Owen wrote: > > > Hi all, > > > > I know perl -V prints what are the current modules directories that > > are

Re: Where - best source for Perl scripts example ... mostly SYSADMIN stuff

2010-06-04 Thread John W. Krahn
newbie01 perl wrote: Hi all, Sorry for being lazy I guess but am assuming a lot of you will probably have a list of their favorite sites for resources of Perl scripts I did find a lot as well via Google but mostly Perl CGI stuff though ... Basically, am wanting to know where is the "best"

Re: Just asking - Tips on how to maintain your scripts ..

2010-06-04 Thread Bob goolsby
Vim, git, bugzilla, and Perl. B On Fri, Jun 4, 2010 at 8:42 PM, newbie01 perl wrote: > Hi all, > > Just writing to ask if any one can advise on what tools to use best for > maintaining your scripts ... preferably free/open source and portable if > there is one, that is, one that can be placed a

Just asking - Tips on how to maintain your scripts ..

2010-06-04 Thread newbie01 perl
Hi all, Just writing to ask if any one can advise on what tools to use best for maintaining your scripts ... preferably free/open source and portable if there is one, that is, one that can be placed and run on a USB stick ... At the moment, am having them in directories and files and no versionin

Where - best source for Perl scripts example ... mostly SYSADMIN stuff

2010-06-04 Thread newbie01 perl
Hi all, Sorry for being lazy I guess but am assuming a lot of you will probably have a list of their favorite sites for resources of Perl scripts I did find a lot as well via Google but mostly Perl CGI stuff though ... Basically, am wanting to know where is the "best" place to find scripts

Re: List of Available Modules ... ???

2010-06-04 Thread Owen
> Hi all, > > I know perl -V prints what are the current modules directories that > are > accessible ... but is there a way to list all the available modules > from > each directories as well? > Try this; perldoc -q "How do I find which modules are installed on my system?" -- Owen -- T

List of Available Modules ... ???

2010-06-04 Thread newbie01 perl
Hi all, I know perl -V prints what are the current modules directories that are accessible ... but is there a way to list all the available modules from each directories as well?

Re: parse xml with invalid chars

2010-06-04 Thread Chas. Owens
On Fri, Jun 4, 2010 at 13:30, Roman Makurin wrote: > I used mostly the same things, but without uri_(un)escape it doesnt work. > If i clearly understant, in order to parse feed i need apply escape > methods to broken elements, am i right ? snip How you fix each section that is broken is dependent

Re: parse xml with invalid chars

2010-06-04 Thread Roman Makurin
I used mostly the same things, but without uri_(un)escape it doesnt work. If i clearly understant, in order to parse feed i need apply escape methods to broken elements, am i right ? i there any module with magic function like fixBrokenXML() ? Thanks On Fri, Jun 04, 2010 at 01:01:53PM -0400, Cha

Re: parse xml with invalid chars

2010-06-04 Thread Chas. Owens
On Fri, Jun 4, 2010 at 12:23, Roman Makurin wrote: > Hi, here it is http://pastebin.org/307289 > > On Fri, Jun 04, 2010 at 12:06:24PM -0400, Chas. Owens wrote: >> On Fri, Jun 4, 2010 at 10:16, Roman Makurin wrote: >> > Hi all >> > >> > Last time i have a big problem, i need parse xml files >> > w

Re: parse xml with invalid chars

2010-06-04 Thread Roman Makurin
Hi, here it is http://pastebin.org/307289 On Fri, Jun 04, 2010 at 12:06:24PM -0400, Chas. Owens wrote: > On Fri, Jun 4, 2010 at 10:16, Roman Makurin wrote: > > Hi all > > > > Last time i have a big problem, i need parse xml files > > which have invalid xml chars outside of CDATA and xml > > parse

Re: parse xml with invalid chars

2010-06-04 Thread Chas. Owens
On Fri, Jun 4, 2010 at 10:16, Roman Makurin wrote: > Hi all > > Last time i have a big problem, i need parse xml files > which have invalid xml chars outside of CDATA and xml > parser hangs everytime on such files. Is there any way > to parse such files ??? snip Can you give an example of these i

AW: Value betwwen quotes

2010-06-04 Thread Thomas Bätzler
Chaitanya Yanamadala asked: > i have a string like this > HPOS="573" VPOS="3003"> > > i need to get the values between the " " after the ID= . So how can i > do it, Can any one help me?? Assuming the string is on a single line: #!/usr/bin/perl -w use strict; use warnings; my $line = ''; if

parse xml with invalid chars

2010-06-04 Thread Roman Makurin
Hi all Last time i have a big problem, i need parse xml files which have invalid xml chars outside of CDATA and xml parser hangs everytime on such files. Is there any way to parse such files ??? thanks -- If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby Digital and al

Re: Value betwwen quotes

2010-06-04 Thread Chaitanya Yanamadala
Thank you rob This is what i am looking for.. Chaitanya On Fri, Jun 4, 2010 at 5:45 PM, Rob Dixon wrote: > use strict; > use warnings; > > my $string = ' WIDTH="1986" HPOS="573" VPOS="3003">'; > > my ($id) = $string =~ /ID="(.*?)"/; > > print $id; >

Re: Value betwwen quotes

2010-06-04 Thread Rob Dixon
On 04/06/2010 12:55, Chaitanya Yanamadala wrote: use strict; use warnings; my $string = 'WIDTH="1986" HPOS="573" VPOS="3003">'; my ($id) = $string =~ /ID="(.*?)"/; print $id; __END__ HTH, Rob -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: b

Re: Value betwwen quotes

2010-06-04 Thread Chaitanya Yanamadala
Thank you shwan for the reply.. But i am storing this value under a string and i need to fetch the value only..i cannot use the XML parser here.. so can u help with this. Chaitanya On Fri, Jun 4, 2010 at 5:30 PM, Shawn H Corey wrote: > On 10-06-04 07:55 AM, Chaitanya Yanamadala wrote: > >> i h

Re: Value betwwen quotes

2010-06-04 Thread Shawn H Corey
On 10-06-04 07:55 AM, Chaitanya Yanamadala wrote: i have a string like this i need to get the values between the " " after the ID= . So how can i do it, Can any one help me?? If you're parsing XML, you'd be better off using a parser from CPAN

Value betwwen quotes

2010-06-04 Thread Chaitanya Yanamadala
i have a string like this i need to get the values between the " " after the ID= . So how can i do it, Can any one help me?? Regards Chaitanya