ve run out of options here. I'm used to C and not
perl
Thanks in advance
Jose Vazquez
[EMAIL PROTECTED]
##
#!/usr/bin/perl
for ($i=0;$i<20;$i++) {
@zin[$i] = $ARGV[$i];
print "@zin[$i] \n\r";
}
ace it
with a space or something, this is the last problem I've got. I don't know why it
gives me the error NO MATCH when it detects a ( ) [ ].
Thanks in advance
Jose Vazquez
[EMAIL PROTECTED]
#!/usr/bin/perl -w
my @zin = @ARGV; #put string in an
Greg,
I already tried that, it doesn't work. :(
When it gets to the ()[] it stops at once, with the error NO MATCH
I need to remove the ()[] before it gets read, or ARGV needs somekind of
option so it will ignore them.
Thanks
jose vazquez
[EMAIL PROTECTED]
On Thu, 3 May 2001, Greg M
Hi friends, I need your help.
I need to send and email with an html file, but when I insert a figure(bmp),
this figure doesn't appear in the mail that they receive. Please help me.
Bye, and good luck.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROT
Hi,
How do you traverse Windows directories in Perl? Let's say J:\foo\bar\logs
has a variable number of folders, each of which I want to look into for a
specific file. How would I do this? Thanks for all help.
-Jose
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
In the code below, is there a Perl built-in function to pass $DAY into
so that a "9" comes out "09"? I need digits from 1 to 9 to be of the form
01, 02, etc. Ideas? Thanks.
-Jose
-Original Message-
From: Shinagare, Sandeep [mailto:[EMAIL PROTECTED]]
Sent: We
I think you should have to use
use Mail::Sendmail
Bye.
Hi.
I am trying two items in a script:
- I have to read a file and when I find certain word I must change it for
other one.
- I have to read a file and when I find certain word I must delete it from
the file and all the ocurrences.
Thanks for your help.
--
To unsubscribe, e-mail: [EMAIL
Hi friends.
I am replacing a string using s///, in the following way:, but I only
need and exact string to be replaced, for example if I have a file with the
following strins:
amor
alto
a
bacho
And execute
~s/$name/#$name/g
where $name is equal to "a", so I have
#amor
#alto
#a
b#acho
But I
Hi friends.
I am looking for a module to make a phone call, please tell me if you know
one.
Bye and Thanks a lot.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I have downloaded the perl modules, Net-SMS-XXX, and Net-Pager-XXX, but I have
problems to use them.
Anybody know about them, please send me all the information.
Thanks in advance.
Hi.
I need to know about the "mac_adress", because I need it to run a script.
Please send me any information.
Thanks in advance.
I can't install the module because I get some errors, when I read README file i find
this:
BUILDING:
set-up these environment variables:
DBI_DSN The dbi data source, e.g. 'dbi:ODBC:YOUR_DSN_HERE'
DBI_USER The username to use to connect to the database
DBI_PASS The userna
I think:
foreach $value(@fields)
{
$value = s/\.\-//g;
}
- Original Message -
From: "Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 07, 2002 4:02 PM
Subject: global substitution
> Hi all:
>
> I have two files that I am reading into an array, I want to substi
I can't install the module because I get some errors, when I read README file i find
this:
BUILDING:
set-up these environment variables:
DBI_DSN The dbi data source, e.g. 'dbi:ODBC:YOUR_DSN_HERE'
DBI_USER The username to use to connect to the database
DBI_PASS The user
Hi friends.
I am looking for a module to access "ACCESS DATABASES", please if you
have any information send me it.
Thanks in advance.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi, again.
What I have to do in this case: in README file of that module I find:
set-up these environment variables:
DBI_DSN The dbi data source, e.g. 'dbi:ODBC:YOUR_DSN_HERE'
DBI_USER The username to use to connect to the database
DBI_PASS The username to use to connect to the
I am trying to access a folder, but this folder is linking rapidly, I need your help.
Can anybady explain me why does ithappens.
Hi!
I've been using Perl for awhile but I still have some doubts :) hopefully
you will help me to clarify some concepts :)
In particular, I have the following situation: I have an external command
that returns the following:
Virtual Disk: 1
Virtual Disk: 6
Virtual Disk: 8
Virtual Disk: 7
Virtual
>
> > my @virtual_disks = sort map { /Virtual Disk:\s(\S+)/ } `$SSCS_CMD
> > list -a
> > $storage vdisk`;
> >
> > my question is, WHY IS THIS WORKING? My first idea was to use this
> > command
> > instead:
> >
> > my @virtual_disks = sort map { s/Virtual Disk:\s(\S+)/$1/ } `$SSCS_CMD
> > list
> > -
I am looking for a package/module that will tabulate access statistics based on apache
access logs. So far the only one I have found is AWStats on sourceforge. Does any
one know of some other free software I could take a look at that does this sort of
thing?
Thank you!
> -Message d'origine-
> De : Richard Crawford [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 12 mai 2004 22:17
> À : NYIMI Jose (BMB)
> Cc : Alok Bhatt; [EMAIL PROTECTED]
> Objet : Re: DBD for SQL Server?
>
> NYIMI Jose (BMB) wrote:
>
> >
> &g
> -Message d'origine-
> De : Wiggins d Anconia [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 13 mai 2004 18:02
> À : NYIMI Jose (BMB); [EMAIL PROTECTED]
> Objet : RE: Extracting attachment from mail
>
> > > -Original Message-
> > > From: N
> -Message d'origine-
> De : Perl Mail User [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 18 mai 2004 20:10
> À : [EMAIL PROTECTED]
> Objet : Perl Newbie Question
>
> Hello All,
>
> I have a question, I am looking to read the name of the file that I am
> passing as an argument to the perl
> -Message d'origine-
> De : Mike Blezien [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 18 mai 2004 21:32
> À : Perl List
> Objet : Module to validate credit cards
>
> Hello,
>
> can someone recommend a decent perl module or a reliabe routine to
check
> credit
> cards and expiration dates
> -Message d'origine-
> De : Brian Gerard [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 4 août 2004 19:40
> À : Perls of Wisdom
> Objet : Re: E-mail Parsing
>
> And the clouds parted, and Wiggins d Anconia said...
> >
> > > I'm have a email in a text file. From this file I would like to
> -Message d'origine-
> De : Witzke, Rob [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 4 août 2004 19:36
> À : Bob Showalter; PerlBeginners (E-mail)
> Objet : RE: DBI Install
>
> Unfortunately, this does indeed seem to be the case and I can't
rebuild
> perl without jeopardizing our prima
> -Message d'origine-
> De : news [mailto:[EMAIL PROTECTED] De la part de Christopher J.
Bottaro
> Envoyé : jeudi 5 août 2004 19:39
> À : [EMAIL PROTECTED]
> Objet : cryptic error messages in modules
>
> package My::Class;
> use strict;
> use warnings;
> use Class::Struct;
> use IO::File
> -Message d'origine-
> De : Randy W. Sims [mailto:[EMAIL PROTECTED]
> Envoyé : samedi 7 août 2004 02:50
> À : [EMAIL PROTECTED]
> Cc : [EMAIL PROTECTED]
> Objet : Re: iterate over the fields of a struct?
>
> Christopher J. Bottaro wrote:
> > is there a way to iterate over the fields of
> -Message d'origine-
> De : Gunnar Hjalmarsson [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 18 août 2004 17:18
> À : [EMAIL PROTECTED]
> Objet : Re: Data comparision analysis
>
> Marcos Rebelo wrote:
> > Gunnar Hjalmarsson wrote:
> >> Or a little shorter:
> >>
> >> #!/usr/bin/perl
> >>
> -Message d'origine-
> De : Dave Kettmann [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 1 septembre 2004 22:42
> À : Perl List (E-mail)
> Objet : RE: Is my DB code bad?
>
> First off, Thanks to Jenda and Wiggins for their quick response. I
have
> found the answer to my question in Jenda
> -Message d'origine-
> De : Nicolay A. Vasiliev [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 1 octobre 2004 22:39
> À : Perl Beginners List
> Objet : Re: Becoming Disenheartened - Everyone talks about Python and
says
> Perl is old news.
>
> I didn't mean CGI, only standart types.
>
s
> -Message d'origine-
> De : Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 2 novembre 2004 09:44
> À : Gavin Henry
> Cc : perl beginners
> Objet : Re: Sourcing Configuration files
>
> On Tue, 2004-11-02 at 13:41, Gavin Henry wrote:
> > Hi all,
> >
> > What is the eas
> -Message d'origine-
> De : Bob Showalter [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 5 novembre 2004 19:40
> À : 'JupiterHost.Net'; [EMAIL PROTECTED]
> Objet : RE: start http request and move on
>
> JupiterHost.Net wrote:
> > Bob Showalter wrote:
> ...
> > > Use something like the fo
A few secondes search on word "GD"
from perl.com gives me the following link:
http://www.oreilly.com/openbook/cgi/ch06_03.html
HTH,
José.
> -Message d'origine-
> De : Custard, Carol N. [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 22 novembre 2004 17:21
> À : [EMAIL PROTECTED]
> Objet : GD
> -Message d'origine-
> De : Jonathan Paton [mailto:[EMAIL PROTECTED]
> Envoyé : samedi 4 décembre 2004 20:08
> À : Nilay Puri, Noida; [EMAIL PROTECTED]
> Objet : Re: Is try-catch a better method for handling errors ?
>
> Dear Nilay,
>
> I strongly recommend using exceptions (what you c
Hello,
Input : Oracle table
Output : XML Schema document file
Im looking for information (module) on how to do this with Perl.
Any idea is welcome.
Thanks and Merry Chrismas 2005 !
José.
> -Message d'origine-
> De : Peter Rabbitson [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 30 décembre 2004 04:58
> À : beginners@perl.org
> Objet : Copying a hash-of-hashes
>
> Hello List,
> To explain the problem I am having, I wrote a simple snipet that
doesn't
> do
> anything meaningful
> -Message d'origine-
> De : Todd W [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 4 janvier 2005 18:49
> À : beginners@perl.org
> Objet : Re: xml
>
>
> "Brent Clark" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi
> >
> > I have been trying to get my perl to work with
> -Message d'origine-
> De : Wagner, David --- Senior Programmer Analyst --- WGO
> [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 3 mars 2005 21:40
> À : Nishi Prafull
> Cc : beginners@perl.org
> Objet : RE: Perl program to convert system date to yymmdd
>
> Nishi Prafull wrote:
> > On Thu, 3
> -Message d'origine-
> De : Nishi Prafull [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 3 mars 2005 23:12
> À : Wagner, David --- Senior Programmer Analyst --- WGO
> Cc : Jose Nyimi; beginners@perl.org
> Objet : Re: RE : Perl program to convert system dat
> -Message d'origine-
> De : Santiago Hirschfeld [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 10 mars 2005 21:58
> À : beginners@perl.org
> Objet : Design Plugin System
>
> Hi everyone,
>
> I'm pretty new to perl and i'm doing a program to organize music, I'd
> like to make a plugin syste
> -Message d'origine-
> De : Jose Nyimi [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 10 mars 2005 23:03
> À : 'Santiago Hirschfeld'; beginners@perl.org
> Objet : RE : Design Plugin System
>
>
>
> > -Message d'origine-
>
> -Message d'origine-
> De : Charles K. Clarkson [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 16 mars 2005 19:27
> À : beginners@perl.org
> Objet : RE: build perl modules
>
> What you are describing is called "exporting" (or "importing" --
> depending on how you look at it.). There
> -Message d'origine-
> De : KEVIN ZEMBOWER [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 28 mars 2005 18:13
> À : beginners@perl.org
> Objet : Problems matching or parsing with delimiters in text
>
> I'm trying to read in text lines from a file that look like this:
> "B-B01","Eng","Binder
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 29 mars 2005 16:48
> À : Peter Rabbitson
> Cc : beginners@perl.org
> Objet : Re: simple server app
>
>
>
> - Original Message -
> From: Peter Rabbitson <[EMAIL PROTECTED]>
> Date: Tuesday,
> -Message d'origine-
> De : Peter Rabbitson [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 29 mars 2005 12:05
> À : beginners@perl.org
> Objet : simple server app
>
> Hi everyone, Here is my situation. I have a windows system which
> continuosly
> runs a perl script, which utilizing Win32::
> -Message d'origine-
> De : Matthew Ryan [mailto:[EMAIL PROTECTED]
> Envoyé : samedi 9 avril 2005 01:19
> À : beginners@perl.org
> Objet : trying to create my first exe with pp
>
>
> I am trying to use pp to create an exe file. I have installed
> PAR with ppm and installed ScanDeps.p
Manish Sapariya a écrit :
Thanks fxn,
This certainly should help.
List,
Is there a search tool which can give me perldoc pages
given a string.
Try
http://www.perldoc.com
or
http://www.perlpod.com
BR,
José.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
> -Message d'origine-
> De : Ambikesh Chaurasia [mailto:[EMAIL PROTECTED]
> Envoyé : dimanche 10 avril 2005 18:30
> À : perl
> Objet : Capturing the integer return value of a "C" program,
> called inside perl script
>
>
> Hi Guys,
>
> I want to capture the return value of a "C" progr
> -Message d'origine-
> De : Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 15 avril 2005 08:32
> À : perl beginners
> Objet : Anyone using AJAX
>
>
> Hi,
> I am trying to learn using Ajax instead of form-oriented
> perl-cgi. ( fascinated with gmail :-) ) I h
> -Message d'origine-
> De : Graeme McLaren [mailto:[EMAIL PROTECTED]
> Envoyé : dimanche 24 avril 2005 19:01
> À : beginners@perl.org
> Objet : basic class problem
>
>
> Hi all I'm trying to write a basic class that will contain some
> configuration details, unfortunately it bombs ou
Hi there
Sure I am the newbiest of all Perl newbies in this group
Just have been reading some of the posts you all have sent since I subscribe to
this list
What I'm trying to learn these days is how I run a Perl script in background on
Windows. Can anybody give a hint on it?
Appreci
Plese help me , how can I use fsck, because I had some errors.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The error is :
need terminal for interactive
- Original Message -
From: "Jose Vicente" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 15, 2002 3:47 PM
Subject: fsck
> Plese help me , how can I use fsck, because I had some errors.
>
>
Can the get function in Net::FTP be used to get an entire directory? I know
the get function is used to retrieve a single file, but I need to retrieve
an entire directory. How can this be done? Thanks.
-Jose
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Thanks for your help.
-Jose
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks everyone for your help. It is much appreciated.
-Original Message-
From: David vd Geer Inhuur tbv IPlib
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 12:39 PM
To: [EMAIL PROTECTED]; Torres, Jose
Subject: Re: command-line commands within a Perl script
Hi,
A possible
k),
and then call sum * and output the results to a file which should also be
located in 020405 (How do I do this part?). Thanks in advance for all help.
-Jose
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
code. Any ideas? Is there a method that will execute code in the location
specified by a previous call to chdir (as is the case here)? Thanks for your
help.
> -Original Message-
> From: Torres, Jose
> Sent: Thursday, May 23, 2002 12:03 PM
> To: '[EMAIL PR
Hi,
How can I simply iterate over the contents of a directory? I want to perform
a certain
action when I locate a particular text file. Thanks.
-Jose
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
/docs/foo.txt instead of just foo.txt. I could theoretically just
append foo.txt to a "/home/docs/" prefix, but I'm trying to make my code
more generic and not hard-code everything if possible. Thank you.
-Jose
-Original Message-
From: Nikola Janceski [mailto:[EM
there
was any output from within my script so that I can take one particular
action if diff
returned something (the files were different) or take another if diff didn't
return anything (the files were identical). Thanks for all help with this.
-Jose
--
To unsubscribe, e-mail: [EMAIL
Greetings!
I am using perl v5.22.1, and I am debugging an old script. The code is,
if (defined($$glob)) {
$localconfig{$var} = $$glob;
}
elsif (defined (@$glob)) {
$localconfig{$var} = \@$glob;
}
elsif (
Greetings!
Long story, I had to install Bugzilla v3.2, which was in a WinNT 4. I have now
installed Bugzilla v3.2, in the Ubuntu 14.04 server, but I have perl (v5.22.1)
and I am getting lots of errors. Once I learn to fix one of these, I can work
with the others.
===
On Sunday, February 25, 2018 at 11:26 PM, "Uri Guttman" wrote...
> >
> >
> > syntax error at Bugzilla/Bug.pm line 1085, near "$type qw(dependson
> > blocked)"
> >
> > Here is line 1085:
> > foreach my $type qw(dependson blocked) {
> > my @bug
On Sunday, February 25, 2018 at 11:48 PM, "Uri Guttman" wrote...
> >>> Here is line 1085:
> >>> foreach my $type qw(dependson blocked) {
> >>> my @bug_ids = split(/[\s,]+/, $deps_in{$type});
> >> put parens around the qw(). it used to be allowed as the () in the for
> >> loop but no
Greetings!
I just installed perlbrew and I tried installing perl v5.8.9 to prevent trying
to fix a bunch of v5.8.9 perl code, but it failed. The first thing that came
to mind was x64 vs x32. Can this perl version v5.8.9 be installed on an Ubuntu
x64 bit? Thansk.
josé
--
What if eternity i
On Monday, February 26, 2018 at 4:26 AM, "Shlomi Fish" wrote...
> Hi jose,
Hi.
> were the only failing tests in op/numconvert? If so, it does not seem serious.
> and you can use --force or --notest. That put aside, this is an old version of
> perl with many known bugs t
On Monday, February 26, 2018 at 4:50 AM, Shlomi Fish" wrote...
> Hi jose,
>
> please see http://www.shlomifish.org/Files/files/code/bugzilla.patch for my
> patch against bugzilla 3.2 to get it to compile with recent perls.
Thanks.
josé
--
What if eternity is real? Where
On Monday, February 26, 2018 at 9:31 AM, "Jostein Berntsen" wrote...
>
> Have you tested with an original Ubuntu package for v.5.8?
>
> https://launchpad.net/ubuntu/+source/perl/5.8.8-12ubuntu0.8
>
Didn't know it was available. Let me try that. Thanks.
josé
--
What if eternity is real? Wh
> -Message d'origine-
> De : Ramprasad A Padmanabhan [mailto:[EMAIL PROTECTED]
> Envoyé : mardi 14 juin 2005 16:39
> À : beginners@perl.org
> Objet : what is the MVC all about
>
>
> hi,
>I have been lately reading a lot of stuff about perl
> catalyst with MVC I am still not clear
> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] De la part de zentara
> Envoyé : samedi 25 juin 2005 13:36
> À : beginners@perl.org
> Objet : Re: route STDOUT to file
>
>
> There are a whole bunch of different ways, ...
>
Here yet another one ;)
#!/usr/bin
Hi,
Maybe you are interested as well ;)
Rgds,
José.
-Message d'origine-
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de
Sebastian Riedel
Envoyé : vendredi 15 juillet 2005 17:42
À : [EMAIL PROTECTED]
Cc : mason-Users; templates@template-toolkit.org;
cgiapp@lists.erlbaum.ne
Try this:
echo hello: world | perl -lne '$aref = [ split(/:/, $_) ]; print $aref'
[] synthax gives a ref to the array returned by split()
HTH,
José.
-Message d'origine-
De : Binish A R [mailto:[EMAIL PROTECTED]
Envoyé : samedi 20 août 2005 17:15
À : Perl Beginners
Objet : Forcing array
urping the file
contents into a single variable? Is there a (better) mechanism to
continue matching against the string if its matched once? Any help
would be greatly appreciated!
Thank you,
Jose
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http:
> -Message d'origine-
> De : John W. Krahn [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 22 septembre 2005 23:26
> À : Perl Beginners
> Objet : Re: Is it possible to force a particular order in a hash?
>
>
> Dave Adams wrote:
> > I have a hash that I need to use later and display some val
> -Message d'origine-
> De : Dion Markus [mailto:[EMAIL PROTECTED]
> Envoyé : jeudi 13 octobre 2005 23:09
> À : beginners@perl.org
> Objet : LLama and camels books
>
>
> Hi all I am totaly new to Perl and programming.
> I am Dion Markus from the netherlands and i would like to
> learn
ut:
===
$./test.pl
IO::Filter::gzip=HASH(0x8132004)
--
Jose Malacara
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
;
$record_type,$gateway,$acct_id
Start Date: @<<<<<<<<<< Start Time: @<<<<<<<<<
$start_date,$start_time
Disconnect Date: @<<<<<<<<<< Disconnect Time: @<<<<<<<<<
$disco_date,$disco_time
.
write TYPE_2;
Also, how would I go about keeping the filehandles open as it would be repetively
"writing" each format.
Thank you,
Jose
Can someone explain to me how to do multiline matching? I am trying to extract three
consecutive lines from a datafile containing multiple records like this:
Name: Bob
City: Austin
State: Texas
Address: 123 Whatever
Age: 46
Name: Jose
City: Denver
State: Colorado
Address: 118 Mystreet
Age: 28
nt $&'
Thanks again,
Jose
On Wed, 2004-01-14 at 18:37, Jeff Westman wrote:
> Jose Malacara <[EMAIL PROTECTED]> wrote:
>
> > Can someone explain to me how to do multiline matching? I am
> > trying to extract three consecutive lines from a datafile
> >
d be greatly
appreciated.
Thanks in advance.
-Jose
Can someone please tell me what I'm doing wrong here?
I have a data file that looks like this:
jason,texas,austin
tim,denver,colorado
jose,oregon,portland
And a script to update the last field and output the results with the
new city:
#!/usr/bin/perl -w
open(DATAFILE, "datafil
is a cleaner way to do this via regex
or possibly by chopping multiple characters off at once.
$ts = "200212091500";
chop ($ts);
chop ($ts);
chop ($ts);
chop ($ts);
print "$ts\n";
Thanks,
Jose
UPUP madd2-card
slot-3 UPUP madd-card"""
If an occurce is found, then a counter is incremented for that specific series. My
question is does Perl have some way to match against mutliple lines, or a block of
text, like this or will I have to create a loop and match each line individually?
Thanks,
Jose
Hi All,
Could anybody help me in parsing PDFs (each line
in pdf) using perl. I tried using PDF::Core and
PDF::Parse. But I could able to parse only
informations available in the PDF title.
Thanks
Ajosh
__
Do you Yahoo!?
Yahoo! Mail Plus - Pow
Is there a way for perl to suppress or mask user input at the STDIN? For example, a
password or login prompt Not really trying to implement any real security here,
just curious.
This is what I I would like:
Enter your login:# suppressed from output
Welcome, admin.
or
Enter you
directory, but I seem to be having problems mapping the
rest of the script to the new directory. Is there any way to make my input look
something like this:
my $input="data/$file" or is there a better way to handle this?
Thanks,
Jose
Any help would be appreciated. Here's what
ot;;
}
}
}
}
closedir(DIR);
close INFILE;
==
- Original Message -
From: "Wiggins d'Anconia" <[EMAIL PROTECTED]>
To: "Jose Malacara" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, February 04, 2003 8:11 PM
Yes, with $ARGV[0]. The number is the variable postion. 0 is the first.
#!/usr/bin/perl
$name = $ARGV[0];
print "Hello, $name!\n";
-Jose
- Original Message -
From: "Thomas Browner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 07
You should be able to do this using the Perl Expect module, although not
sure about the Windows part.
-Jose
- Original Message -
From: "Prachi Shah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 10, 2003 1:08 PM
Subject: run UNIX commands f
ram should flow, rather than the finer details like
syntax.
Thanks,
Jose
y runs on a much bigger directory structure and it seems as
though directories that I know to be empty
are not being picked up by the ls() method. Am I doing something wrong? Any
advice as to what's happening here?
Thanks in advance for all help. It is much appreciated.
-Jose
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ot;foo") is translated to "rmdir foo" which will obviously fail
since foo isn't empty. Any ideas? Thanks.
-Jose
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I have a script that opens a file and needs to grab certain values from it.
Can anyone recommend a good file tokenizing module? Thanks.
-Jose
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ss my main question would be how to keep the 'State' value associated
with the cities that follow it.
Any help/suggestions would be greatly appreciated!
Thank you,
Jose Malacara
_
Chat with friends online, try
} elsif ( (m|City=|)) {
# $city = $';
# print "City=$city\n";
# print "Location=$city$state\n";
# }
# }
Thanks again,
Jose Malacara
>From: Kristina Nairn <[EMAIL PROTECTED]>
>To: "Jose Malacara" <[EMAIL PROTECT
Hello. I was wondering if there is a way to capture a system command into a
perl variable. I know this is incorrect, but I basically want to do something
like this:
$date = system("date");
print "Today is $date.";
Thanks,
Jose
--
To unsubscribe, e-mail: [EMAIL PROTE
Hello. I was wondering if there was a way to open a file into a hash? I know
this works for arrays, but was wondering if I this could be done for a hash
also.
I have a file called people.data, which contains two colums:
jose2
karen 8
jason 9
tracey 1
Can
1 - 100 of 496 matches
Mail list logo