quot;bar $1 baz"');
# /e modifier not accepted
Any hints?
--
Josef Wolf
j...@raven.inka.de
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/
On Nov 13, 4:56 pm, [EMAIL PROTECTED] (Deviloper) wrote:
I have a SQL-Statement with a Regular Expression and I want to use a scalar
in that expression: (Looking for something like $tool =~ m/\Q$x\E/ )
#Find tools with xx in the name:
$dbh-prepare (SELECT name FROM toolbox WHERE name
!-- SNIP --
try using:
chown $id:$gid $dir
so that it would be
chown 3051:3051 /home/users/s01-5-097 (or whatever)
HTH,
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
, the command will work. Unitil you have fixed
your errors though, the issues will remain.
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
Take some SYS Admin classes.
Once you have completed the training, your questions should have answers.
Wolf
Jyotishmaan Ray [EMAIL PROTECTED] wrote:
Dear Wolf
It still has not solved my problem completely,
The output is shown below :-
drwxr-xr-x 2 s08-1-5-095 3051 4096 2008-08
Jyotishmaan Ray [EMAIL PROTECTED] wrote:
Dear All,
I am a new bie in perl. I have to create the home directories of 424 students
in a server machine.
The path of the home directory would be :-
/mnt/btech/formatted-rollno.
where formatted-rollno =s08-1-5-097
And the
in the correct locations, it will fail with PHP,
Perl, Ruby, FTP, etc.
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
be able
to click REPLY-ALL and get the list in the response.
But that's just my guess..
I am on a number of lists that require you to click REPLY-ALL if you want the
list to get the response. It just depends on the thought process of the admins
at the time.
HTH,
Wolf
--
To unsubscribe, e
Is there a 'bible' out there to read?
Depending on you level of faith:
learning perl by randal schwartz tom phoenix
the camel book by Larry wall
bless you, wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
as above, | lists alternatives, ie either cane or canine or ..
^ matches beginning of word, $ matches end
Cheers, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
to find documentation an a PDF::API2::Content::Text obj?
- know why ma CAM::PDF call end in an endless loop
- have any other idea how to replace certain strings in a pdf?
- know a docu on how pdf works - which I obviously dont know...
Thanks a lot in advance,
Wolf
--
To unsubscribe, e-mail
You are setting $strB as the string strA instead of $strA($count) which is
where you are getting hosed up.
My perl server is down or I'd play with the code a bit to get it the exact
answer, but that should point you in the right direction.
HTH,
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED
Bobby [EMAIL PROTECTED] wrote:
Wolf,
I still don't understand, so set my $strB = $strA($count); ? That didn't
worked.
Wolf [EMAIL PROTECTED] wrote:
Bobby wrote:
Hi all,
I'm trying to write a simple do until loop to print out the value of $strA0
through $striA3
.
Set the responses in an array and just walk the array for a quick and dirty
solution.
Bobby [EMAIL PROTECTED] wrote:
Thanks for both of your suggestions. I've tried them both but still getting
same result. Any other suggestions?
Thanks.
Wolf [EMAIL PROTECTED] wrote
and mysql from http://www.php.net and
http://www.mysql.com
HTH,
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
I need to get back to an installed Windows Perl environment. What's the
best free option available out there, that everyone would recommend? I can
do installs without too much issues, so installer doesn't matter, but ease
of use does.
Thanks,
Robert
---
Outgoing mail is certified Virus Free.
I need a site spider to stay in the same domain, but follow all links
(saving all files encountered) for saving an entire business site. I
have been looking around but have not found the one I am looking for,
can anyone help? It can be PERL or Windows or PHP, it just needs to be
locked to the
at cpan and at
www.Bioperl.org
Enjoy -Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
you further need the
appropriate DB driver module:
DBD::InterBase for Interbase and Firbird RDBMS available via CPAN.
Enjoy - Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
you further need the
appropriat DB driver module:
DBD::InterBase for Interbase and Firbird RDBMS available via CPAN.
Enjoy - Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
.
...and at least the scripts are available on the net:
http://modperl.com:9000/perl_networking
Have fun, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
at cpan and at
www.Bioperl.org
Enjoy -Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
process?
what about prependin a $$ says: to each line of child output and doing a
m // in the parent process?
(Not to smart but all I can come up with and less complicated then having
seperate handles for each child :-)
Id be interested in how you solf that.
HTH, Wolf
Thanks.
Jason
wait()ing or setting the signal handler? An what does that zombie do
anyway.
Thx, wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
are returned, $text is set to the content of your texfield if
radio=take, otherwise $txt is se to '00'.
Read the CPAN docu for the CGI module if you need help with it - tons of
examples.
Enjoy, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Monday 01 March 2004 02:06, wolf blaum generously enriched virtual reality
by making up this one:
On Sunday 29 February 2004 17:20, [EMAIL PROTECTED] generously
enriched virtual reality by making up this one:
Hi
I have a script that processes a form input. What I want to do
On Thursday 26 February 2004 12:28, Henry Todd generously enriched virtual
reality by making up this one:
On 2004-02-26 00:43:21 +, [EMAIL PROTECTED] (Wolf Blaum) said:
As I understand Biology, there is 4 nucleotid acids which gives 4**2
combinaions for dupplets. So you need 8 vars
to @exclude (no xxx).
However, this takes the whole sense of using a hash in the problem so instead
of looping over the keys, loop over @email and @exclude.
Or someone suggests a smarter way whih I would be interested in!
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
to do?
Enjoy, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
using pos and regexes and a character
class [gatc]{ $wordsize} - that would even make the thing usable for proteins
by changing the character class to the protein alphabet
But im getting OT her - maybe I should have done something else for a
living:-)
Enjoy (and reproduce), Wolf
= ${$_[0]}-get();
should work.
I usually use something like :
my $passed_ref=shift;
and then work from there on.
Enjoy: wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
.
and: www.perldoc.com
Enjoy, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
(or a reference to
one) if you dont need to for other reasons.
HTH,
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
that tells it?
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
files is, ie,
what goes where of which cause: maybe someone can come up with a hash
structure that incoorporates this knowledge.
Dont open and close 42 files if you only will ever print to 2 of them.
Enjoy, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
that satisfies this BNF in perl ? Any suggestions would be
of great help to me.
Maybe Config::Natural is good to you.
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
Nah, because the only ones who receive the file are those attempting to
do harm to my system. Granted I could make it go to a warning page,
which after a few seconds dumps them to the other page, thereby giving
them a warning before I fire the shot, just like a trespasser in my
house. Do I shoot
Who in their right mind would walk into a courthouse and tell the judge
they were trying to break into a computer system (which in and of itself
holds MANY penalties because information on a company system is
invaluable per previous court cases) and say that they lost data on
their system when
For Quality purpouses, LoneWolf 's mail on Friday 06 February 2004 16:57 may
have been monitored or recorded as:
I've been working with this since wolf and jeff and john sent me some
stuff, I think I actually based everything on wolf's code excerpts. I'm
sure my final code is going
at the end of $line?
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
For Quality purpouses, wolf blaum 's mail on Friday 06 February 2004 20:15 may
have been monitored or recorded as:
easy: (notice: thats the same script as priviously but has the parse in a
sub:)
---snip---
#!/usr/bin/perl
use strict;
use warnings;
my (@fields, $lng);
... and that my
arround and change your local
scripts everytime - see first ideas.
You see: it gets out of hand - i better stop here.
good luck, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
I'm back to dealing with the main issue of a badly formatted file being
brought down from an archaic system and needing to be cleaned up before
being passed to another user or a database table. I have the code
below, which pulls the whole file in and parse it line by line. That
problem is still
For Quality purpouses, Lone Wolf 's mail on Thursday 05 February 2004 00:52
may have been monitored or recorded as:
I'm back to dealing with the main issue of a badly formatted file being
brought down from an archaic system and needing to be cleaned up before
being passed to another user
it in the linear way: Mastering regular
expressions by Jeffrey Friedl
Not to forget: perldoc perltoc or www.perldoc.com
and The Hitchhickers Guide to the Galaxy and Last Chance to see by Douglas
Adams.
I guess others would recomend The Lord of the rings too.
Good night:-)
Wolf
I tried the my @fields and I did not get it to work, probably because my
coding skills have not improved enough lately to be worthy of perl.
Thank goodness I never said I had perfect code, because I would
definitely be lying.
I attached 2 files, one the beginning data, the other the .sql file
no!
wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
For Quality purpouses, Lone Wolf 's mail on Thursday 05 February 2004 04:23
may have been monitored or recorded as:
Hi
Thank goodness I never said I had perfect code, because I would
definitely be lying.
no worries - I post code to get feedback. Thats the whole ideaof learning it.
I
For Quality purpouses, wolf blaum 's mail on Thursday 05 February 2004 06:07
may have been monitored or recorded as:
The script reads all files in the sql subdir of your home dir and produces
the corrosponding filname.out in your homedir.
shame on me: of course it reads all the files
.
As Joseph was pointing out, examples in the Tk docu are an endangerd species:
Mastering Perl/Tk by Steve Lidie and Nacy Walsh is an extended zoo of these.
Enjoy clicking around, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http
, along with the names of the second and third parameter. So
the value of $name is:
John Doe [EMAIL PROTECTED] message=This is the message
Note that the first parameter's name does not appear.
What does your form action=. tag look like?
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED
had the very same problem using the xitami webserver on WinOs.
Dont ask me were that problem comes from - no clue:-)
Hope that works,
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
looking around,
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
is
finished.
Any Idea?
Thanks a lot,
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
is another matter). (The difference
being that C does not offer named loops combined
with loop control. Perl does, and this replaces
most structured uses of goto in other lan-
guages.)
hth, wolf
--
To unsubscribe, e-mail: [EMAIL
,
which can do a similar check at run time.
There is tons more infomation of how use/require are simliar/different.
Enjoy. Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
the parameters you expect
are acctually there (by either doig it server side in your script or using a
little ugly javascript client side).
Hope thats a start, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http
totaly miss something.
Maybe. I'm not sure where you're misunderstanding what I wrote. Anyway, I
hope this helps.
ok - I think we are talking about the same thing here.
thx, wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http
For Quality purpouses, Rob Dixon 's mail on Tuesday 27 January 2004 00:30 may
have been monitored or recorded as:
The right conclusion for the wrong reasons Wolf! The spaces are the result
of interpolating the array into a string, and the presence of a newline on
each array element
at the end of their emelents.
hth, wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
@arary[3...] but this doesn't work?.
What about @array[3..$#array]
PS: @arary = typo?
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
.
Let me know if that does it or not. Thx,
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
yet, anything else I ever tried works in
perl.
Just give us some more info.
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
at all.
Have a nice weekend, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
telling you which
modules work in which version of activestate perl.
There is a lot of modules that dont work with 5.8. yet (like
Mail::POP3Client).
Good luck, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http
-
stantially from what the author honestly meant.
-
This is one of the latter cases.
Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
I am transferring the data from a Redhat 9 machine to an IIS server run
by my ISP. I just tried running rsync and it was not responsive (left
it on overnight in fact to give it time to try). :(
Thanks!
Robert
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
a look at perldoc perlvar for detailed info about @ARGV, ARGV and
$ARGV.
Hope that helps, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
. Visit http://insidersadvantage.com for
details.
Uh, given from your question, I better dont,, eh?
Good luck, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
, since there is the one
asking, who is learning too, whom you dont want to confuse with slightly
right answers.
Nevertheless Im happy it seems this is a group were you can even learn how to
explain (and what the group-iquette is anyway).
Thanks for that,
Wolf
--
To unsubscribe, e-mail: [EMAIL
.
Just look at the link above.
Hope thats a start, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
over there! Send me a mail in german (or austrian:-)
if you need further help.
Hope thats a start, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response
I am in dire need of a script that will upload everything from one
server to another one that I can cron. Right now I have to do it by
hand and with more and more updates being done to the site, I need a way
to do it seamlessly. One that checks dates against each other would be
cool too. i.e.:
then
foreach bfile in B-file-dir
foreach b-id in Bfile
foreach a-id in Afile
print to Cfile and next Bfile if a_id eq b_id
thank a lot, wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org
the sample data (results from extraction) as a attachment.
I didnt find your privious thread so i might leave the calls of either way up
to someone who knows that code.
wolf
ps: hope you arent a cowboys fan:-/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
::Audit::Attachment fails too.
All mail headers of the retrieved messages do carry a MIME-version: 1.0 line
as required by Mail::Audit::Attachment.
All the other print froms and so work fine
What am I doing wrong?
Better solutions?
Thanks a lot, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED
fails too.
That still holds valid: I cant the heck use te Mail::Audit class as I would
like to: seems like I cant use it at all...
Whats wrong here? My code? My understanding? My carma?
Thanks, Wolf
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
number, in scientific notation
%f a floating-point number, in fixed decimal notation
%g a floating-point number, in %e or %f notation
Just in case: scientific notation is something like XeY which means X times 10
to the poxer of Y (power first!)
HTH, wolf
--
To unsubscribe, e-mail: [EMAIL
/Enterprise (2001)/a/li';
$data2 =~ /popular title searches:\/pollia
HREF=\\/title\/tt(\d*)\/\/;
print $1;
endSnip---
prints 0244365
If that's what you are looking for.
If you realy have the html in $_, why do you bind $data2 to the regex?
That way you try to find [regex] in $data2.
HTH,
wolf
[EMAIL PROTECTED] (John W. Krahn) writes:
Michael R. Wolf wrote:
[EMAIL PROTECTED] (John W. Krahn) writes:
Are you sure there are only three? :-)
$ perl -le'
print qq(undef is FALSE) unless undef;
print qq( is FALSE)unless ;
print qq(0 is FALSE) unless 0
/failure mode, the true/success value is much
easier.
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] (Michael R. Wolf) writes:
I'd like a few volunteers to take a test that I've put
together for an Introduction to Perl class that I teach.
If you are a beginner or recent graduate of an intro
course and have a few minutes, would you time yourself
taking this test and send
[EMAIL PROTECTED] (Peter Scott) writes:
At 01:15 AM 2/2/2002 -0500, Michael R. Wolf wrote:
I don't usually give quizes at the end of class, but a
client of mine has requested it. (Required it in fact. No
test, no payment!)
[snip]
| Sigils and data types |
[snip
[EMAIL PROTECTED] (John W. Krahn) writes:
Michael R. Wolf wrote:
[...]
Any value that is not false is true. What 3 values indicate
false?
Are you sure there are only three? :-)
$ perl -le'
print qq(undef is FALSE) unless undef;
print qq( is FALSE)unless ;
print qq(0
,
Michael Wolf
/\
| \ /\ /\ /\ /\ /\ /\ /\ /\ /\ / |
|==V== ==V== ==V== ==V== ==V== ==V== ==V== ==V== ==V== ==V
) {
3: $line =~ /\(.+?)\/ ;
4: $YourTextBetweenTheQuotes = $1 ;
5: # Do whatever you want
6: }
7: close (INFILE)
Seems that a WinDOS file system insinuated itself on your
Perl keywords
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED
'
=
= The autodecrement operator, however, is not magical.
I guess by within its range implies 3 (not 2) ranges:
[a-z]
[A-Z]
[0-9]
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
*powerful* statement. In the right hands it's very good,
else it's very bad
Something like this might work.
perl -e s/_VALUETEST/_QAP2/g -i original.scr
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
= FILE;
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
will
get caught, handled, but *not* exit your program. Some
times this is good behavior -- a C-c can do a reset, for
instance.
Check out stty -a from the command line. C-c is probably
mapped to INT. That's why I stubbed out that key.
--
Michael R. Wolf
All mammals learn by playing
way (like me).
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
inplace
editing
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, doing a copule 'o conditionals, throw a
few my variables in one block (but try to use 'em in
another) and the value of well-formatted code becomes real
important.
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED
[EMAIL PROTECTED] (Michael R. Wolf) writes:
Other alternatives include
#! /usr/bin/perl -w -i
#! /usr/bin/perl -w -i .bak
$^I = undef;
Oops! May have been misleading. Here's commentary on
alternatives.
$^I = ''; # in-place, but no backup
$^I = '.bak'; # in-place, with backup
[EMAIL PROTECTED] (Ronald Yacketta) writes:
This works great with one exception... the two values in the sed need to be
passed into the script...
IE:
changedbsid.pl OLDSID NEWSID filename(s)
could be ran against 1 or more files at a time.
I havethis which works like a champ on a
.
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] (John W. Krahn) writes:
Michael R. Wolf wrote:
[buggy code deleted ...]
$ perl -le'
@fred = qw(1 3 5 7 9);
sub total {
my $sum;
$sum += $_ foreach (@_);
}
# undef from final foreach always returned
print total( @fred );
'
My bad! Sorry
[EMAIL PROTECTED] (Leon) writes:
and its happysad journey ends at the the curly Heavenly
gates =}.
I like it! Appropriate for eventualdeath With a name
like that you should get real sharp with scoping.
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED
to advance the paper),
but without the line-feed, the characters already on the
line remain.
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
, but it
generalizes to as deep as you need.
while (my $line = (pop @pushback || )) {
...
push @pushback, $line if (your_conditions_may_vary);
...
}
--
Michael R. Wolf
All mammals learn by playing!
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
1 - 100 of 140 matches
Mail list logo