print $item;
print while ;
last DATA_LINE;
}
}
# the inner loop has now updated $current_filter
print $item unless $item eq $current_filter;
}
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
On Wed, Mar 26, 2008 at 11:08 AM, <[EMAIL PROTECTED]> wrote:
> How do I mod the code to function as is with two args (perlscr
> list1.txt list2.txt)
> or accept stdin as data_file when only one arg is given? (cat
> list1.txt | perlscr list2.txt)
First off, I must not fail to induct you into
shell like us old timers used to
do. Somebody around here probably still remembers how to run a
Makefile.PL from the command line Or you can type "perldoc
perlmodinstall" at the command line and read about it.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscrib
ted output to a file from 2 terminals. There
> are lot of differences.
PERL5LIB, perhaps? You can use that environment variable to try out a
module without installing it "for real".
Another one to check is PATH; you could be using a different perl
binary without realizing it.
Hope th
rogrammer to choose as a key the data item
that's going to be available at runtime.
If you can choose freely which ones are keys and which are values, I'd
suggest that you code so that it makes the most sense to you, even if
that means long keys and short values.
Hope this helps!
--
is by "referencing
subpatterns from a regular expression", which I thought I was doing.
There are other ways to have an "Insecure dependency". A common one is
to have an untrusted $ENV{PATH}. See the perlsec manpage.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
if it had been '$1.12' before the substitution.
I can't use this:
$str ='$1.12' because the $1.12 is read from a file.
You seem to be under the impression that dollar signs in a data file
will be meaningful to Perl. No; data is data. Unless you're doing
somethi
open(HANDLE, $FILE);
open(HANDLE, $FILE) or die "Can't open '$FILE': $!";
my $date = localtime( (stat HANDLE)[9] );
I suspect that you don't have warnings turned on, either. But if the
stat() works, that should give you the modification timestamp.
Good lu
On 5/10/06, Practical Perl <[EMAIL PROTECTED]> wrote:
I want to know,is there a pure perl way to do that without using the 'tail'
unix command?
Yes.
Have you tried to implement it? How far have you gotten?
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe
On 5/9/06, Smith, Derek <[EMAIL PROTECTED]> wrote:
if (/(?)vg00/) {
That doesn't look right. Why is that question mark inside parentheses?
If Perl doesn't complain about that pattern, maybe it should.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To uns
where it's going wrong. Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
, be consistent,
show your work, and continue on the reverse side of the paper if
necessary.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
On 5/12/06, Ryan Perry <[EMAIL PROTECTED]> wrote:
How can I permanently change @INC? I've seen ways to alter this
temporarily, but I want to add a directory forever.
Recompile perl from the source, and reinstall. Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscr
32-0.02/Win32.pm
http://search.cpan.org/author/PHOENIX/Term-ReadPassword-0.07/ReadPassword.pm
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
ting at once?
Unfortunately, perl -d doesn't work well for forks.
There's actually some support for fork in the debugger, but I'm having
a hard time finding any documentation on it, other than the comments.
Search for 'fork' in your perl5db.pl file, if you need it.
Go
ot;
Yes; that's a syntax error. Did you mean something like this, perhaps?
push @mir2,
grep !/\|v\d+/i, # select lines that don't match pattern
`vddisplay $lv`;
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
t do any extra work to allow your program to
see the data one line at a time.)
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
on $_ within grep()? That's bad
form, even if Perl lets you get away with it.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
On 5/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
"Magic number checking on storable file failed at blib/lib/Storable.pm
That sounds as if the input wasn't a valid Storable file. Could it be
some other file format? Was it written by Storable on your machine?
Good luck
this, the parent
class is probably misbehaving, though.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
ements, then join the pieces. Would
that work for you?
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
echanize/FAQ.pod#How_do_I_use_WWW%3A%3AMechanize_through_a_proxy_server%3F
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
(site_perl/5.8.8.. what can I
do with this?
I recommend you re-install the modules. Although there may be a
simpler solution, this method ensures that the modules are compiled
for the correct configuration of the new perl binary.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To
ed. So polling, as you're suggesting, is
probably the best solution in that case.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
On 6/6/06, Chas Owens <[EMAIL PROTECTED]> wrote:
I used "unless" because flock returns 0 on
success and -1 on failure (unless it doesn't work like C version).
Nope; it works like Perl. :-) A true value for success, false for failure.
Cheers!
--Tom Phoenix
Stonehenge
ge the hash in those circumstances, though, so your confusion
is understandable.
my %last_name;
$last_name{'fred'} = 'flintstone'; # creates key 'fred' in hash
my $x = $last_name{'barney'}; # does not create key 'barney'
Cheers!
--Tom Phoeni
eck the 'package' directive to ensure that it's
in scope, or declare your sub with its package name:
sub em_log::dbh { ... }
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
ary runs it:
http://search.cpan.org/~phoenix/Inside-1.01/
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
no guarantee
of correct operation. But, if you need this behavior, you could use an
eval block to trap those errors.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/>
perlfunc manpage.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
aybe it was deleted, or somehow not installed.
You could re-install perl, which should fix things. Or, you could
install just that one file, by manually copying it from a distribution
to the appropriate @INC directory.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-m
On 6/13/06, Michael Oldham <[EMAIL PROTECTED]> wrote:
while () {
print OUT scalar();
You don't want that second use of . Check the documentation
for readline() in the perlfunc manpage. Hope this helps!
--Tom Phoenix
Stonehenge Perl Trai
$count);
}
There may be other problems in your code as well, but this one jumps
out at me. Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
cify a file path with a string. (Is it that simple?)
chdir('/Users/doug/wherever')
or die "Can't chdir: $!";
So, why does your subject line say "I/O Question"? I couldn't find any
question in your message.
--Tom Phoenix
Stonehenge Perl Training
--
ll it which compiler you'd like.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
only once in every five or ten connection attempts.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
e generally worth the effort, but feel free to postpone any
upgrade until you need to apply it.
...or even a moment earlier. Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> &
#x27;t open file 't' for output: $!";
select DEBUG_OUT; # now the default for print and printf
Alternatively, you should even be able to do the same thing from
within the debugger, by typing those two lines into the debugger as
the first two commands before the rest of your program sta
nverted to an integer, since you're using it as one.
Since the integer is a memory address, it's almost certain not to be
what you want.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
y has a directory with the name of an item from another
directory.
only . and .. are identified as directories, the other subfolders are not.
Check.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
d
be correct, even though that would be the "weapon of choice" for many
Perl programmers. One big reason is that a pattern can easily adapt to
flexible data formats, such as a timestamp which may be written in
many different ways.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
On 6/26/06, tom arnall <[EMAIL PROTECTED]> wrote:
1 #!/usr/bin/perl -w
2
3 $_ = " [11] [22] a ";
4
5 #with .*?
6 $re1 = qr/a|\[.*?\d\d\]/;
7 $re2 = qr/($re1\s)?$re1/;
8 ($f) = /($re2)/;
9 print "with .*? : $f\n";
10
11 #without .*?
'a'.
Without '.*?', the optional clause matches the empty string; so the
second occurrence of $re1 matches '[11]'.
Remember, it matches at the first place in the string where it *can*
match. Once the RE engine finds a match, it doesn't keep looking for
another
lid regular expression when that line is
evaluated, your program will crash. Perhaps you want string equality
testing? Or to see whether one string contains another as a substring?
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
*? : [11] [22]
without .*? : [11] [22]
Perhaps it's confusing because sometimes you've got two matches of
$re1 and sometimes just one? From your earlier code, when you had two
spaces:
> > with .*? : [11] [22] a
First $re1 matched '[11] [22]', second mat
he child, as you've found.
I need to setup the redirection before I fork, but
I shouldn't redirect from within the child,
Why don't you set up the redirection after the fork? Why shouldn't you
do the redirection from the child process? That's how I always do it.
Hope th
global log file. Check out flock(). Hope this
helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
quire 'NEWPACKAGE.pl';
Is the word "subroutines" intended to be a comment? I can't see any
other reason for it to be there.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
n is indeed broken, I recommend rebuilding it
from the start. Here's a page that may help you.
http://developer.apple.com/internet/opensource/perl.html
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
ant to run
the full set of tests for a module, the usual way is 'make test'. (You
may need to run 'perl Makefile.PL' and 'make' first.)
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
ser's end of
the connection, not the server's?
Browsers shouldn't be able to run arbitrary external programs without
manual intervention, so when I want to run a program at the browser's
end of the connection, I ask somebody at that end of the connection to
run the program.
Hope t
e
other ideas to help you.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
arse::RecDescent, maybe?
http://search.cpan.org/~dconway/Parse-RecDescent-1.94/
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
gram is trying to process STDIN. Could
%do_these have become empty? Check that @ARGV is non-empty before
starting that while loop and I think your program will run as you
would like.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
sage is coming
from one of the modules you're using, and not from perl itself. Was
there any additional information in the message, such as a file name
or line number, that might help to identify the message's origin?
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubs
e this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
enough, you can
hack a copy of perl5db.pl to start the tee as the debugger starts up;
see the perldebug manpage.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
f is a function which returns a
formatted string, printf goes a step further and prints the string.
They're documented in perlfunc, but this example may be all you need:
my $result = sprintf "%.3f", $buf/25400;
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubs
ur
algebra, you'll have an easy time getting the job done. In fact,
search around: Somebody else probably has an algebraic parser that you
can start from.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
rn match is completed,
\1 isn't correct.)
You can find more about backreferences in the regular expression
manpages, such as perlre and perlrequick.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
es and directories; they're not yours. Perhaps you
should ask user "nobody" to rmtree? Or if the files are supposed to be
yours, maybe you just need to fix the ownership.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
On 7/20/06, Brian Volk <[EMAIL PROTECTED]> wrote:
} elsif (/^s+(\S.*)/) { # a provision
That pattern begins by matching an 's' at the start of the line, but
that's not what you want. Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubs
documentation to be sure. Hope
this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
On 7/21/06, Jerry DuVal <[EMAIL PROTECTED]> wrote:
Any way to catch a die message?
Perl has two common ways to do this: with an eval block and with the
$SIG{'__DIE__'} mechanism; both are covered in the perlfunc entry
about die.
Hope this helps!
--Tom Phoenix
Stonehenge Perl
s Perl, and although there are many
knowledgeable people here, there are better places to ask about IBM
Http Server.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.or
ts code blocks at some places in the
program, and the middle of an expression isn't one of them.
Also, from the look of your code, you may be close to reinventing
File::Find, or some similar module.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EM
On 7/28/06, Jeremy Kister <[EMAIL PROTECTED]> wrote:
how do you use \Q when you want to anchor the regex with a
dollar sign?
I think you're looking for \E, which "ends" the section of the string
quoted via \Q. Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
T
om an environment variable? Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
o the correct library in the correct way.
If you rebuild and reinstall perl, you should be able to use the same
compiler to build and install Math::Pari. In most cases, the default
configuration will be all you'll need. Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To un
On 7/31/06, Sam DeForest <[EMAIL PROTECTED]> wrote:
I have not received any list topics lately, is the list broken?? Or am I ?
You can monitor the list at this URL:
http://www.nntp.perl.org/group/perl.beginners/
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsub
hy the return value becomes 1
When the keyword 'return' isn't used, the return value from a Perl
subroutine is the last expression evaluated in the subroutine. That
looks to be the value of $dbh->disconnect, which is probably 1 for
success. Did you mean to return some other value?
C
perl hw', where hw is your
hello-world program.
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
ant to use WWW::Mechanize.
http://search.cpan.org/dist/WWW-Mechanize/
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
er
to light candles. Slip the string 'unlink <*>' into the database, and
you'll be sad.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
ds everything including the backslash
and the following newline, while $2 is left undefined.
the "." obviously matched the newline at the end.
No, the "." matched the backslash; the "[^\\]" matched the newline.
Does that get you back on the right track?
n some newer ones) may not give you the effect you're looking
for.
What are you trying to do? You can have direct control of line breaks
in what the perlpod manpage calls a "Verbatim Paragraph", if that's
what you need.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Traini
you're trying to get from forcing some line breaks in
your document. If we knew your goal, I or others on the list might
have other ideas as to how you could represent your information.
I'm afraid, the E<10> is about close as it gets...
That's why it's Plain-Ol'
On 8/8/06, n[ate]vw <[EMAIL PROTECTED]> wrote:
What am I doing wrong?
You're probably not using 'use strict', else it would have given you a
helpful diagnostic message that you'd find in the perldiag manpage.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To u
On 8/11/06, prashant puranik <[EMAIL PROTECTED]> wrote:
I am trying to upload file to webserver.
$filename = param('uploaded_file');
You probably want the upload() function; see the CGI module's
documentation. Hope this helps!
--Tom Phoenix
Stonehenge Perl Traini
e problem, but it may work for you. Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
On 8/14/06, SFantar <[EMAIL PROTECTED]> wrote:
I want to list all the Perl modules installed on my system.
Did you want Inside?
http://search.cpan.org/~phoenix/Inside-1.01/
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTE
e or more arrays. Then I'd probably use sort
and some custom subroutines to organize the data and produce some kind
of report or reports.
Also: CPAN. I'd use modules from CPAN to process the date and time
data, and maybe other modules to help with data analysis or graphing,
say.
Hope
much to use it. Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
http://search.cpan.org/~petdance/WWW-Mechanize/
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
ines be causing other troubles? Hope this
helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
sages that gnuplot
produces. Did you mean to put the two redirections in the opposite
order, perhaps, so that errors would go into the file?
But I see a number of modules on CPAN that involve gnuplot. Maybe you
could save yourself some time and trouble by building upon one of
those.
http://search.cpan.or
splice @array0, 0, 100;
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
On 8/20/06, chen li <[EMAIL PROTECTED]> wrote:
my @temp=split(/t/, $line);
Isn't there supposed to be a backslash in there? Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
{'foo'} = 42;
$user->{'bar'} = undef;
print "Yabba dabba doo?\n" if $user->{'name'} eq "Fred";
}
Is that what you're looking for? There are several documentation pages
about references that may fill in some gaps for you. Hope th
u can't
find where the control characters are coming from, try stepping
through your code with the Perl debugger to see what's really going
on. Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P
le to read that answer and some other useful information
about filehandles. Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
r picks one item from the n
arrays, the inner picks a second. Inside, call your current code once
for each pair of arrays.
Hope this helps!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://lea
Huh? There's no filehandle function in my Perl.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
On 8/24/06, Alexander Müller <[EMAIL PROTECTED]> wrote:
But what happens if the passed string contains non-hex values
like space or even "G"?
What happened when you tried it?
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For add
dy else who knows about webservers. We know
about Perl, but we don't know your webserver. There's probably a
support FAQ and mailing list for your webserver. Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
s than root suffice? I
hope you know what you're doing.
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
like \s and
\x20, all seem to work:
echo 'a: b' | perl -F'/:\s+/' -lane 'print join("--", @F)'
See what happens when you file a bug report via the perlbug program. Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL P
On 8/25/06, John W. Krahn <[EMAIL PROTECTED]> wrote:
See the link in my post for the "bug" report I already filed on this.
Ah, I see that it's been fixed (or at least documented). Thanks.
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROT
o => 'mailhost', Port => 587, Timeout
=> 60, Debug => 1)
Did using the Debug option produce any helpful output?
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
;token'
for secure connections only.
We are using the LWP to execute the remote string, but their may be a better way
to do this.
WWW::Mechanize is built atop LWP, so you shouldn't have to change your
code much.
http://search.cpan.org/~petdance/WWW-Mechanize/
Hope this
1 - 100 of 931 matches
Mail list logo