On 9/25/06, Michael Alipio <[EMAIL PROTECTED]> wrote:
I have several files with \xa0 characters.. Do you
know how can I remove them?
Those sound like non-breaking spaces, so you probably want them to
become ordinary spaces. Have you tried using s/// or tr/// ?
perl -pi.bak -e 'tr/\xa0/ /'
Hi,
I have several files with \xa0 characters.. Do you
know how can I remove them?
Thanks.
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Sayed, Irfan (Irfan) wrote:
>
> I am not getting the proper output in @vob_rep Array.
>
> Following is my code
>
> # Perl script to change the replica name
>
> use strict;
>
> use warnings;
>
> my $fname = "/tmp/vob_list1";
>
> open FILE,">",$fname or die $!;
>
> my $fname1 = "/tmp/repl_list1";
>
elite elite am Montag, 25. September 2006 22:27:
> I not sure what i doing wroung.
I'm not sure either :-)
> Street="Wright";
This is wrong syntax; "Street" is not a scalar variable, while "$street" would
be.
> print "$street\n";
$street is undef here, you didn't assign anything to the $stree
Zembower, Kevin wrote:
>
> I'm trying to process a file that mostly has lines like:
> http://www.cpsp.edu.pk/jcpsp/ARCHIEVE/May2006/article5.pdf 342740
> http://www.scielo.br/pdf/bjid/v10n1/a04v10n1.pdf342741
>
> However, it sometimes has more than one URL on a line, like:
> http://db
Dear Perl Gurus,
Still struggling here...
The problem is the data in the middle of the match is on multiple lines.
Please reply directly and CC the list.
Thanks,
D.G.
(kora musician / audiophile / webmaster @ www.coraconnection.com / Ft. Worth,
TX, USA)
>>
I am having a little trouble understand
I not sure what i doing wroung.
Street="Wright";
print "$street\n";
$street="Washington";
And i get this output.
Street/[EMAIL PROTECTED] ~]$
Craig
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://
I'm trying to process a file that mostly has lines like:
http://www.cpsp.edu.pk/jcpsp/ARCHIEVE/May2006/article5.pdf 342740
http://www.scielo.br/pdf/bjid/v10n1/a04v10n1.pdf342741
However, it sometimes has more than one URL on a line, like:
http://db.jhuccp.org/docs/732301.pdfhttp://db.
David Gilden wrote:
>
> I am having a little trouble understanding matching and getting the sub
pattern
> saved to a Var. so that I can do a munge. I want to take the line returns and
change them into
> pipe characters '|'
> All data records start with a date i.e. 01/01/2006
> But there are fie
[EMAIL PROTECTED] wrote:
To Corey: Thanks for the URL. It does look promising although not so
easy to see how to use it to quicly extract a temperature.
Try something like this. I'm not good at perl yet (hence my being on
this list), but it works for me.
---
Sayed, Irfan (Irfan) am Montag, 25. September 2006 14:50:
> Can any body please help on this
>
> Regards
> Irfan.
Hello
please read on at the bottom.
_
>
> From: Sayed, Irfan (Irfan)
> Sent: Friday, September 22, 2006 12:59 PM
> To: beginners@perl.org
> Subject: Proper output
>
>
>
> Hi Al
Peter Scott wrote:
On Sat, 23 Sep 2006 11:51:54 +0200, Andrej Kastrin wrote:
the script below count word occurences in input file. It uses simple
hash structure to store unique words and its frequencies.
[...]
foreach my $w (keys %words) {
print "$w|$words{$w}\n";
}
Hello,
Can anyone point me in the right direction, I am trying to use the
SOAP::WSDL module however it is error out before I ever get to use it:
--snip--
#!/usr/bin/perl
#use strict;
use diagnostics;
use warnings;
use SOAP::Lite +trace => [transport => \&log_data];
use LWP::UserAgent;
use SO
On 09/25/2006 06:47 AM, John W. Krahn wrote:
Mumia W. wrote:
On 09/24/2006 07:04 PM, David Gilden wrote:
I am having a little trouble understanding matching and getting the
sub pattern saved to a Var. so that I can do a munge. I want to take
the line returns and change them into pipe characters
On Sat, 23 Sep 2006 11:51:54 +0200, Andrej Kastrin wrote:
> the script below count word occurences in input file. It uses simple
> hash structure to store unique words and its frequencies.
[...]
> foreach my $w (keys %words) {
> print "$w|$words{$w}\n";
> }
[...]
> Is that brainy solutio
On Thu, 21 Sep 2006 10:25:19 -0500, Tony Frasketi wrote:
> sub decodeURL {
>$_ = shift;
>tr/+/ /;
>s/%(..)/pack('c', hex($1))/eg;
>return($_);
> }
Please don't reinvent the wheel.
use URI::Escape;
$unescaped = uri_unescape($url);
--
Peter Scott
http://www.perlmedic.com/
http://w
Can any body please help on this
Regards
Irfan.
_
From: Sayed, Irfan (Irfan)
Sent: Friday, September 22, 2006 12:59 PM
To: beginners@perl.org
Subject: Proper output
Hi All,
I am not getting the proper output in @vob_rep Array.
Following is my code
# Perl script to change the
hOURS wrote:
> Hi all,
Hello,
> I'm trying to make a list of lists. The main list will have 926 sublists.
> Each sublist will have 7 items. I organized the data into a very nice
> text file all formatted the way (I thought?) I needed it to be. The text
> file looks like so:
> a, b, c, d, e
Hi all,
I'm trying to make a list of lists. The main list will have 926
sublists. Each sublist will have 7 items. I organized the data into a very
nice text file all formatted the way (I thought?) I needed it to be. The text
file looks like so:
a, b, c, d, e, f, g
h
John W. Krahn wrote:
>
> This should do what you want:
>
>
> open FI, 'test.txt' or die "Could not open 'test.txt' $!";
>
> my @lines;
> while ( ) {
> s/\s+\z//;
> if ( m!^\d\d/\d\d/\d{4}\|! ) {
Correction:
if ( @lines && m!^\d\d/\d\d/\d{4}\|! ) {
> print join( '|', spl
Mumia W. wrote:
> On 09/24/2006 07:04 PM, David Gilden wrote:
>>
>> I am having a little trouble understanding matching and getting the
>> sub pattern saved to a Var. so that I can do a munge. I want to take
>> the line returns and change them into pipe characters '|' All data
>> records start wi
David Gilden wrote:
> Greetings,
Hello,
> I am having a little trouble understanding matching and getting the sub
> pattern
> saved to a Var. so that I can do a munge. I want to take the line returns and
> change them into
> pipe characters '|'
> All data records start with a date i.e. 01/
On 09/24/2006 07:04 PM, David Gilden wrote:
Greetings,
I am having a little trouble understanding matching and getting the sub pattern
saved to a Var. so that I can do a munge. I want to take the line returns and change them into
pipe characters '|'
All data records start with a date i.e. 0
Greetings,
I am having a little trouble understanding matching and getting the sub pattern
saved to a Var. so that I can do a munge. I want to take the line returns and
change them into
pipe characters '|'
All data records start with a date i.e. 01/01/2006
But there are fields in between t
24 matches
Mail list logo