On Tue, 2002-03-12 at 21:50, Michael wrote:
> I am a true perl newbie. I am supposed to:
>
> --
> -it does make a difference-
>-michael-
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Okay, so what is the question?
--
T
I am a true perl newbie. I am supposed to:
Write a program that finds lines in an input file and copies them to an
output file . The program takes the following arguments:
an input file name (a mandatory argument)
an output filename (an optional argument, set to STDOUT if omitted),
a
At 11:56 PM 3/11/02 -0600, Mariusz wrote:
>Thanks Timothy. However, I'm not sure if I understand...
>constraining to html?
He said http, not html.
>I said I wanted to avoid html and the need to supply
>the path of the file via form. Below is my short script; all I want to do is
>to be able to sp
M Z wrote:
>
> Hello
Hello,
> I was wondering if someone could point me in the right
> direction for the following regex.
>
> s/(.{1,100}(?: |(\-))/$1$2\n/g;
>
> Please help on the second (?: |\-)
> I am trying to match either a single space ' '
> or a - after 100 other characters and I want
You said ...
I'm trying to add a new record (new values) into one table and I have a
second table that refers to the record number of the first table.
I can get the SQL statement to grab the current value of the incrementing
record number to work, but I need to translate this to operate in perl
Could someone help me with PERL522? Thank you in advance.
Is there a certification process for PERL on supported platforms?
We have PERL522 image on all our Clients (NT 4.0 with SP6, more than 8000
clients) and Servers (NT 4.0 with SP6a; HP, AIX). We are wondering if 522
is compatible/or cer
I usually use Session::Apache for that. It will allow for the creation of
session ID's, storing data, and retreival of data. You will need to set up
a table in a database, and then put some code in each page to fetch the
session ID from the querystring or cookie so that it can initialize the
ses
Add '127.0.0.1 localhost' to your /etc/hosts file. And then make sure that
you have an entry matching the contents of /etc/hostname.*, for each active
interface shown in 'ifconfig -a', which appears that you do since you can
get to the network at all. The loopback (lo0 in Solaris 2.6) in 'ifconf
Well, sort of. POD is a documentation language that co-exists with Perl
code. Sort of like an underpowered WEB implementation. Type "perldoc
perlpod" for more info (now that you can).
On Tue, 2002-03-12 at 15:37, Joe Echavarria wrote:
> Thanks,
> I did not know that. I suppose that POD(P
Hello!
i see in most PHP powered sites values like SID=02304028lkbah234, which is the
session id in most cases, is there any way to do the same in PERL?
Thanks
--
Hytham Shehab
Thanks,
I did not know that. I suppose that POD(Plain Old
Documentation) is a perl help format.
Thanks.
--- Tanton Gibbs <[EMAIL PROTECTED]> wrote:
> perlre is a POD (Plain Old Documentation) file that
> you can view using
> perldoc. It is not an executable. To see it, do
> perldoc perlre
How are you trying to execute it?
"perldoc perlre"
-Original Message-
From: Joe Echavarria [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 12:30 PM
To: [EMAIL PROTECTED]
Subject: problems with help commands
On my perl distribution i can't execute "perlre", why?
i always get
2 things..
first you are missing a closing parenth
second you are doing it globally (/g)
s/(.{100})(?: |(\-))/$1$2/;
this will now take out a space after the 100th character or keep the - after
the 100th character.
-Original Message-
From: M z [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
perlre is a POD (Plain Old Documentation) file that you can view using
perldoc. It is not an executable. To see it, do
perldoc perlre
- Original Message -
From: "Joe Echavarria" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 12, 2002 3:29 PM
Subject: problems with help
On my perl distribution i can't execute "perlre", why?
i always get an errore perlre: not found. When i try
to find the executable file i jus find
/usr/perl5/5.00503/pod/perlre.pod
/usr/perl5/5.00503/pod/perlref.pod
/usr/perl5/5.00503/pod/perlreftut.pod
/us
Hello
I was wondering if someone could point me in the right
direction for the following regex.
s/(.{1,100}(?: |(\-))/$1$2\n/g;
Please help on the second (?: |\-)
I am trying to match either a single space ' '
or a - after 100 other characters and I want to save
the - but not the ' '
thereby $2
type this at your command line:
echo $PATH
That should display a few folders (/usr/local/bin, /usr/bin, etc...).
your perldoc executable should be located in a folder listed in your $PATH.
Good luck,
Tyler
- Original Message -
From: "Joe Echavarria" <[EMAIL PROTECTED]>
To: "Hanson, Ro
I really don ' t understand what you mean. I am new to
Unix and Perl.
Please help me out here. What i should to ?, read or
what ?
Thanks.
Joe.
--- "Hanson, Robert" <[EMAIL PROTECTED]> wrote:
> perldoc isn't in your path most likely.
>
> Check your path environment variable (echo $PATH),
Gary Stainburn wrote:
>
> Hi all,
Hello,
> I've got a project where I need to develop an single-board-computer based
> network device using packet modems connected to Amateur Radio equipment and
> I'm trying to develop a simulator in Perl under Linux and I've got a few
> questions.
>
> Basical
perldoc isn't in your path most likely.
Check your path environment variable (echo $PATH), and make sure that
perldoc is in one of those directories. If I had to guess you probably have
a symlink to the perl executable in your path, but not the actual bin/
directory of perl.
Rob
-Original
hi there,
On my unix box when i try to get perl help from the
command line using "perldoc print" or "perlfunc" i get
these errores.
perlfunc: not found
perldoc: not found
How can i fix this problem ?
Thanks.
Joe.
__
Do You Yahoo!
This is the result of the ifconfig -a:
lo0: flags=1000849mtu8232 index1
inet 127.0.0.1 netmask ff00
hme0: flags=1000843 mtu 1500 index 2
inet 128.169.76.38 netmask ff00 broadcast 128.169.76.255
ether 8:0:20:90:c6:63
and my /etc/hosts file looks like this:
127.0.0.1
(This is one of those topics that should be in the FAQ).
Have you considered dumping your data into a CSV file with a CSV extension?
Excel will open CSVs by default.
It's the *easiest* way, but may not be what you want...
-rjf
> -Original Message-
> From: Allison Ogle [mailto:[EMAIL
When the machine reboots, one of the messages that comes up is:
starting rpc services: rpcbind done.
is that the bind you were talking about?
I haven't gotten any error messages when booting.
HURT, CHRIS [Non-Pharmacia/1000] wrote:
> I tried to dig your server - but it timed out - I would cont
> -Original Message-
> From: Steven M. Klass [mailto:[EMAIL PROTECTED]]
> Subject: Multiline searching -
>
>
> Hi all,
>
> I have a text that broken into sections. Each section
> has comments(;) and
> can be placed anywhere, Each section ends with "*ENDS" .
> Each section
Take a look at Spreadsheet::WriteExcel on CPAN (www.cpan.org).
On Tue, 2002-03-12 at 12:18, Allison Ogle wrote:
> Hi
>
> Does anyone know how to write to an Excel document? I've opened the
> document using OLE but I cannot find any documentation on how to store data
> in the spreadsheet. If an
Dear Allison,
> Does anyone know how to write to an Excel document? I've opened the
> document using OLE but I cannot find any documentation on how to store data
> in the spreadsheet. If anyone knows what the commands are to do this please
> let me know. Thanks,
>
Try the SpreadSheet::Pars
Check out Spreadsheet-WriteExcel available at www.cpan.org. Really great module for
creating Excel spreadsheets.
Craig A. Sharp
Unix Systems Administrator
DNS Administrator
Roush Industries
Office: 734-466-6286
Cell: 734-231-6769
Fax: 734-466-6939
[EMAIL PROTECTED]
=
Hi
Does anyone know how to write to an Excel document? I've opened the
document using OLE but I cannot find any documentation on how to store data
in the spreadsheet. If anyone knows what the commands are to do this please
let me know. Thanks,
Allison
--
To unsubscribe, e-mail: [EMAIL PROT
I tried to dig your server - but it timed out - I would contact whomever
controls the nameservers for assistance (if nothing else they'll be able to
trace your queries - you can try this also - but if you're not a dns person
it won't make much sense - execute nslookup (no options) - at the > prom
> OPERATION, FOO, AND BAR. I want to read in this one section
> at a time.
I think it would be simpler to read the entire thing in at once, like
so:
open FILE,'; }
> I want to know how to read this in by
> section (as oposed
> to line) that ends with (*ENDS).
And split on *ENDS, like so
Joyce,
Have you verified that your /etc/nsswitch.conf file is set to point to dns
on the hosts and not just files. In otherwords, you should have a line in
your /etc/nsswitch.conf file similiar to this:
hosts: files dns
If you are using NIS servers then your line would be:
hosts: files nis
I don't have access to the name servers. How do I determine which
version of bind they are running.
I tried to do:
nslookup server amethyst.it.utk.edu
and got basically the same results. I think it can't talk to the name
server, but I can't understand why.
Also, my nsswitch.conf file has the lin
I suppose it depends on what kind of processing you are doing. Can you give
us examples?
For that size of data, I would make sure you are reading the file in line by
line (as opposed to reading it to an array).
Also, anything that prints to the screen will slow things down considerably.
I know i
- What version of bind are the nameservers running (I'm thinking you're not
in "the view" maybe)
- check for hidden characters in resolv.conf (vi - :set list)
- but the messages indicate that nslookup can't talk to the defaults - run a
"nslookup somehostname nameserverip" and see if it returns th
Yes. Ping works fine. I can reach the servers and I can do nslookup
through these name servers from other servers.
Joyce
HURT, CHRIS [Non-Pharmacia/1000] wrote:
> Can you reach those IP addresses (ping, etc) from the box in question?
>
> -Original Message-
> From: Joyce Harris [mailto
Can you reach those IP addresses (ping, etc) from the box in question?
-Original Message-
From: Joyce Harris [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 10:20 AM
To: '[EMAIL PROTECTED]'
Subject: DNS question
Ok,
I know this is not the list to send this to, but it is the mo
Ok,
I know this is not the list to send this to, but it is the most
responsive list. I have a DNS question. I just installed Solaris 8 on
one of our servers. I reconfigured the network files back to the way
they were originally. This is a copy of my /etc/resolv.conf file:
domain it.utk.edu
na
On Tuesday 12 March 2002 12:30 pm, Jon Molin wrote:
[snip]
>
> I'm not sure i follow you here, will you have to process them at the
> same time so
> while (1)
> {
> read tail
> check result
> read keyboard
> check result
> read radio
> check result
>
> do other stuff
> }
> won't do?
T
or you can remove the tick marks with the code...
$line =~ s/'//g ;
-rjf
> -Original Message-
> From: Hanson, Robert [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 09:45
> To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
> Subject: RE: Regex Help
>
>
> Maybe something lik
Hi all,
I have a text that broken into sections. Each section has comments(;) and
can be placed anywhere, Each section ends with "*ENDS" . Each section
begins with a *KEYWORD, where keyword is any word like DESCRIPTION,
OPERATION, FOO, AND BAR. I want to read in this one section at
Maybe something like this:
@line = split /:/, $theLineOfData;
@line = map { s/^'(.*)'$/$1/ } (@line); # removes the ticks
And to match the whole word:
if ( $field =~ /\bBRANCH\b/ ) {
# matches word boundary
}
Or you could remove the whitespace as well to simply things...
@line = split
Here is snippet of data:
'BRANCH ':'Kurt':'Strothenke'
'BRANCH ':'Michael':'Mulligan'
'BRANCH_SSC ':'Kevin':'Oaks'
'BRANCH_SSC ':'Thomas':'Grove'
'BRANCH_SSC ':'Stephen':'Orban'
'BRANCH_SSC ':'Gerald':'Parnell'
'BRANCH_SSC ':'Liane':'Mcintyre'
'BRANCHADMIN ':'Ann':'White'
'BRANCHAD
There is no limit on the length of a scalar in Perl other than the amount of
memory you have. It is possible that it is splitting the newline because
you are using a multi-byte character set, or the global variable $/ (input
record seperator) was changed in the script, or you are working with bin
Perl 5.004_04 on my Solaris 5.6 machine had no problems making $_ of length
178956970.
Of course I have an elephant crap load of memory on this sucker.
Exactly how long/big are we talking of making $_?
-Original Message-
From: David Gray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 1
From: "Brian Johnson" <[EMAIL PROTECTED]>
> I'm trying to add a new record (new values) into one table and I have a
> second table that refers to the record number of the first table.
>
> I can get the SQL statement to grab the current value of the incrementing
> record number
> Thanks Timothy. However, I'm not sure if I understand...
> constraining to html? I said I wanted to avoid html and the
> need to supply the path of the file via form. Below is my
> short script; all I want to do is to be able to specify the
> path of the file within the script, instead of wa
> Is there some limit in how long the contents of the variable $_ can
> be?
Not that I'm aware of, no.
> I encounter this problem on Solaris machines running Perl 5.005.
> On Windows with Perl 5.6.1. no such problem was encountered.
>
> What could cause the problem?
I suppose it might be a
I'm trying to add a new record (new values) into one table and I have a
second table that refers to the record number of the first table.
I can get the SQL statement to grab the current value of the incrementing
record number to work, but I need to translate this to operate in perl (I'm
not used
Gary Stainburn wrote:
>
> Hi Jon,
>
> On Tuesday 12 March 2002 11:54 am, Jon Molin wrote:
> > Gary Stainburn wrote:
> > > Hi all,
> > >
> > > I've got a project where I need to develop an single-board-computer based
> > > network device using packet modems connected to Amateur Radio equipment
>
On Tue, 12 Mar 2002, Matthew Harrison wrote:
> what do i need to send sms messages to mobile phones from my website? is
> it just the script or do i need emmitters, satellites and whatnot? is
> there a site that allows you to target one of their scripts with a form on
> your site.
>
You need a
Hi Jon,
On Tuesday 12 March 2002 11:54 am, Jon Molin wrote:
> Gary Stainburn wrote:
> > Hi all,
> >
> > I've got a project where I need to develop an single-board-computer based
> > network device using packet modems connected to Amateur Radio equipment
> > and I'm trying to develop a simulator i
Gary Stainburn wrote:
>
> Hi all,
>
> I've got a project where I need to develop an single-board-computer based
> network device using packet modems connected to Amateur Radio equipment and
> I'm trying to develop a simulator in Perl under Linux and I've got a few
> questions.
>
> Basically I'm
what do i need to send sms messages to mobile phones from my website? is
it just the script or do i need emmitters, satellites and whatnot? is
there a site that allows you to target one of their scripts with a form on
your site.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
Hi all,
I've got a project where I need to develop an single-board-computer based
network device using packet modems connected to Amateur Radio equipment and
I'm trying to develop a simulator in Perl under Linux and I've got a few
questions.
Basically I'm going to have X number of nodes runni
Roiy Zysman wrote:
>
> Hi all,
Hello,
> What is the meaning of the '+' sign before the shift command in my test sub.
> Why doesn't it works without the '+' sign ?
perl looks at %{shift} and sees the variable %shift. You have to tell
it that shift is not a variable name using either %{shift()}
Hi!
Is there some limit in how long the contents of the variable $_ can
be?
The problem I have is following: my script reads a file line by line.
These lines are fairly long. As soon as I work with the long lines
problems arise. The script chops off the first part of the line. When I
print
Hi all,
What is the meaning of the '+' sign before the shift command in my test sub.
Why doesn't it works without the '+' sign ?
10x Roy
test_sub({'key1'=>'value1','key2'=>'value2'});
sub test_sub{
my %htest = %{+shift}; #why doesn't it works without the + sign
print keys(%htest);
58 matches
Mail list logo