because it's not as fun!)
Good luck to all,
Nikola Janceski
Research is what I'm doing when I don't know what I'm doing.
-- Wernher Von Braun (1912-1977)
The views and opinions expressed
Here's my situation...
I have a command I need to run and parse the output of, BUT the command is
longer than 255 characters.
is there a way to use the PROGRAM LIST format for backticks or open the same
way you can for exec and system?
Nikola Janceski
There is no great concurrence between
I have found one work around, but I was hoping there would be some other
way..
perhaps this suggestion can make it into Perl 6?
current work around:
perldoc perlipc
search for execute something without the shell's interference
-Original Message-
From: Nikola Janceski
Facinating, so is that a no?
-Original Message-
From: John W. Krahn [mailto:krahnj;acm.org]
Sent: Thursday, November 07, 2002 1:41 PM
To: [EMAIL PROTECTED]
Subject: Re: chgrp
Nikola Janceski wrote:
I know there is a chmod function in Perl, but is there a
chgrp function
the second 'my $var2' will have memory allocated to it, but will not be
freed until Perl ends, but Perl will re-use that memory allocation after
leaving the {BLOCK}.
-Original Message-
From: Jason Frisvold [mailto:friz;corp.ptd.net]
Sent: Tuesday, November 05, 2002 4:43 PM
To: [EMAIL
remember what \ does in these
try:
system net use m: $nodec\\$ file:///$node\\c\\$
user:/username password;
remember for one \ you need \\
for 2 \ you need
-Original Message-
From: Larry Sandwick [mailto:lgs;sarreid.com]
Sent: Monday, November 04, 2002 3:31 PM
let's suppose
$variable = some text;
print $variable\n; # prints: some text
print '$varibale\n'; # prints: $variable\n
get it?
double quotes interpolate - expands variables and special characters.
single quotes do not interpolate - it's all just plain text don't think of
them as variables or
If you don't want them to comprehend your code, be sure to add lots of code
that will never get run and remove all comments and any whitespace that
really isn't needed, and through in a poem or two and u will have code that
know won wood wont 2 reed n it will look kinda like this reply.
(split/,/)[1..8,0]
this splits $_ on the , and moves the first element to the 9 position.
ie. $_ = '111,222,333,444,555,666,777,888,999,000';
will now be returned as an array (222, 333, 444, 555, 666, 777, 888,
999, 111)
notice: no matter how long the $_ is and how many , it has it only
/Software_Distribution
Nikola Janceski
Summit Systems, Inc.
212-896-3400
Clever talk and a pretentious manner are seldom found in the Good.
-- Confucius
The views and opinions expressed in this email message
Then I am really confused, how can I cause the scope of $\ to extend only to
the end of the file and not into the other modules??
perldoc -f local
local EXPR
You really probably want to be using my instead,
because local isn't what most people think of as
for any explaination to this behavior,
Nikola Janceski
The average person thinks he isn't.
-- Father Larry Lorenzoni
use MIME::Entity;
local $\ = \n;
my $top = MIME::Entity-build(
Type= multipart/mixed,
From
nedit is good, www.nedit.org, but you need some third party stuff to make it
run on windows, there is lots on the website to explain how to install/run
on windows.
-Original Message-
From: Mariusz [mailto:mkubis22;hotmail.com]
Sent: Tuesday, October 22, 2002 7:58 PM
To: perl
Subject:
above?
Nikola Janceski
Only the wisest and the stupidest of men never change.
-- Confucius
The views and opinions expressed in this email message are the sender's
own, and do not necessarily
See inline comment:
-Original Message-
From: Balint, Jess [mailto:JBalint;alldata.net]
Sent: Tuesday, October 22, 2002 2:17 PM
To: '[EMAIL PROTECTED]'
Subject: Missing Bracket
Hi all. I am sorry to post a question such stupid as this
one, but it has me
stumped. I have a
It depends on which meaning of IDE you mean..
http://www.acronymfinder.com/af-query.asp?String=exactAcronym=ide
but if it's ever a question of windows or unix:
I personally always choose unix, unless the question is which will break
first.
-Original Message-
From: Jim Thomason
# read this from bottom to top (be sure to read 'perldoc -f map' first)
print # print will print the list that is returned from map
map { # map returns the last evaluated statement
$_ . # this is what $_ was
:\t . # this is a colon followed by a tab
dunno about AI, but you might want to see the Chatbot::Eliza module.
pretty cool, fun stuff.
-Original Message-
From: James Edward Gray II [mailto:james;grayproductions.net]
Sent: Thursday, October 17, 2002 4:44 PM
To: [EMAIL PROTECTED]
Subject: AI in Perl
Any good books out
but this only works if each hash has the same keys.
if one hash might have more/less keys than the other use this:
my %seen;
foreach ( grep !$seen{$_}++, (keys %hash1, keys %hash2) ) {
next if $hash1{$_} eq $hash2{$_};
print key: $_ - hash1: $hash1{$_} - hash2: $hash2{$_}\n; #
Google groups:
http://groups.google.com/groups?sourceid=navclientie=UTF-8oe=UTF-8q=linux
+admin
that should have been your first guess.
-Original Message-
From: Anidil Rajendran-Raj [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 4:08 PM
To: [EMAIL PROTECTED]
Subject:
That's not ok.
use File::Path;
mkpath();
if you want that functionality.
-Original Message-
From: James Edward Gray II [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 2:14 PM
To: [EMAIL PROTECTED]
Subject: No Such File or Directory
Okay, here's a different on,
Is this correct placement of the parenthesis?
print FILEHANDLE (list_of_print_stuff);
Nikola Janceski
The straightest path is not the path of experience.
-- Nicky J. from da' Bronx
The views
I need them.. for
print FILEHANDLE (list, of, stuff), next if (condition);
-Original Message-
From: James Edward Gray II [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 11, 2002 2:39 PM
To: Nikola Janceski
Cc: Beginners (E-mail)
Subject: Re: Is this correct? print syntax
from the doc I was a little confused and wanted clarification:
Also be careful not to
follow the print keyword with a left parenthesis
unless you want the corresponding right parenthesis
to terminate the arguments to
Why aren't you passing a kill signal?
You should always pass a kill signal, even if it's just -9.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 11:37 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL
uh... is there away around the character limit (256 chars) on
system/exec/backtick commands?
I know it's probably sh's fault, but I would like to avoid creating a shell
script if possible.
Thanx,
Nikola Janceski
Our doubts are traitors, and make us lose the good we oft might win by
fearing
malloc(3) - malloc is the function (a C library function in this case), and
(3) is the section of malloc (there are sometimes variations on functions so
there are different sections).
but in the general case, it refers to a function/command/system item. Perl
is not written perl (well not all of
use File::Path;
mkpath(/storage/systbl/, 0, 0777) || die $!\n;
in accordance with the prophecy.
-Original Message-
From: loan tran [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 5:26 PM
To: [EMAIL PROTECTED]
Subject: how to check if a dir exists if not create it?
See inline comments
-Original Message-
From: Jerry Preston [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 10:36 AM
To: Beginners Perl
Subject: regex is working , then not?
Hi!
I do not understand why my regex works , then does not.
regex:
my (@dat) =
perl -e 'printf %.0d\n, $ARGV[0]/2 if @ARGV' 5
Weird why doesn't this work they way I expect it to?
it returns 2 not 3.
-Original Message-
From: Zielfelder, Robert
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 10:58 AM
To: Perl Beginners List (E-mail)
Subject: Odd
read up on slices;
join (,, @array[2 .. $#array]);
-Original Message-
From: Diego Riano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: Joining array elements
Hello all
I have an array like this:
@array=(1,2,3,4,5,6);
which do you have:
use config.cgi;
require config.cgi;
in your code?
Where is the file located? did you check the case of the file name in the
script and at it's location?
we need more info.
-Original Message-
From: Bootscat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08,
He just sent it to me for some reason, but I can't find the problem.
Be sure to CC Bootscat as he is the original poster.
-Original Message-
From: Bootscat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 08, 2002 4:51 PM
To: Nikola Janceski
Subject: Re: Need urgent help
Here's how
There is no magic in programming, just ones and zeros.
but I am sure others have the same question as me...
What the heck is a Profiler? Where have you seen one before?
-Original Message-
From: Jason Frisvold [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 07, 2002 2:24 PM
To:
if(not @array){
# it's empty
}
-Original Message-
From: Bryan Harris [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 11:58 AM
To: Beginners Perl
Subject: Check for empty array
What's the easiest way to check whether an array is empty?
I'm really feeling
and how would you like this info stored? What portions of the info do you
want?
You need to supply us with more information as to what you want to do.
We are good... but we aren't mind readers.
This looks a bit like homework to me, so show us what you got so far and
we'll help.
-Original
open(FILE, yourfile) or die can't open $!;
my(%LINES);
while(FILE){
my($key) = split;
$LINES{$key) = $_ unless exists $LINES{$key);
}
close FILE;
# %LINES now has key value pairs of '123' and '444' as the keys and the
value is the first occurence in the file.
-Original
http://activestate.com/Products/Download/Register.plex?id=ActivePerl
suggested.
-Original Message-
From: Shirley Frogge [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 10:34 AM
To: Beginners@Perl. Org (E-mail)
Subject: newest
Hi,
I am the newest of beginners!! I
The error you have is you didn't use the module that already does this for
you.
use Data::Calc qw(Days_in_Month);
-Original Message-
From: Charlie Farinella [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 5:13 PM
To: Perl Beginners
Subject: Last day of Month
I
er... my bad.. typo
use Date::Calc qw(Days_in_Month);
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 5:17 PM
To: 'Charlie Farinella'; Perl Beginners
Subject: RE: Last day of Month
The error you have is you didn't use
And who would care if the list always remains small enough that it wouldn't
make a difference?
use grep, if you notice a performance issue at that command then it's time
to think of other methods of doing your operation (hint hashes).
Personally I avoid making giant arrays, heck I aviod too much
well.. TIMTOWTDI
I would store this as a nested array in a hash:
my %CLANS;
while(FILE){
chomp;
my($clan, @scores) = split /,/;
$CLANS{$clan} = \@scores;
}
# to sort in order
@clans_in_win_order = sort {
$CLANS{$b}[0] = $CLANS{$a}[0] ## sort by most wins first
see perldoc perlvar
$. # has the current line number of the last FILEHANDLE opened.
-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 9:18 AM
To: [EMAIL PROTECTED]
Subject: Getting a line number from a file.
Is there a way to, as a
change to ||
-Original Message-
From: Admin-Stress [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 10:31 AM
To: Perl beginners
Subject: checking parameters ...
I wrote a simple script like this :
#!/usr/bin/perl
if (($ARGV[0] eq ) ($ARGV[1] eq ) ($ARGV[2]
open(FILE, yourfile) or die $!;
chomp(my(@lots) = FILE);
close FILE;
-Original Message-
From: Jerry Preston [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 11:30 AM
To: Beginners Perl
Subject: a better way?
Hi!
Is there a better way? A Perl way?
$j = 0;
maybe the file has perl code and intends to:
eval{ @lines };
for some wacky reason. I am sure you can remember your early perl days when
you read files into arrays because it was cool and easy.
:^P
-Original Message-
From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]]
Sent:
if you use an array you are using up memory.
small files are okay for that.. but you can do it in the while loop without
the array.
But TIMTOWTDI.
what are you checking for in the lines? Just an example will tell us what's
best for your application.
-Original Message-
From: Jerry
check out sprintf() and ord()
quickly for you example:
## hex
perl -e 'printf(%x, ord(\n))'
## oct
perl -e 'printf(%o, ord(\n))'
-Original Message-
From: James Edward Gray II [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 12:49 PM
To: [EMAIL PROTECTED]
Subject:
why would you want that? 'use Carp' does something like that, but I think it
actually crawls up the stack.
-Original Message-
From: Balint, Jess [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 1:11 PM
To: '[EMAIL PROTECTED]'
Subject: Sub Name
Hi all. Is there a way
I don't know how good the PGP module on CPAN is, but it looks promising the
last time I looked.
-Original Message-
From: Rob Das [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 8:25 AM
To: [EMAIL PROTECTED]
Subject: Encryption/Decryption
Hi List:
Can anyone
Are you sure you know what this 'if' statement is doing?
It always evaluates true. and the m/$litem/$matchitem/i shouldn't be in
quotes.
if($litem, /$matchitem/){ ## always true
$PNdString =~ m/$litem/$matchitem/i; ## not a pattern match if it's
in quotes
print (OUTFILE
you have a space that shouldn't be there:
print THIS DOESN'T WORK: $key $newHash {$key}\n;
^
should be:
print THIS DOESN'T WORK: $key $newHash{$key}\n;
-Original Message-
From: Simon Tomlinson [mailto:[EMAIL
you only need to declare with my() the first array. all the other arrays are
just references to anonymous arrays (if you create the 2-d array like most
people do).
ex:
my(@arr);
$arr[0] = [ qw( 1 2 3 4 5 ) ];
-Original Message-
From: pravesh biyaNI [mailto:[EMAIL PROTECTED]]
Sent:
See in-line comments:
-Original Message-
From: pravesh biyaNI [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: simple problem
Hello
Here is a very simple prblem which unfortunatly i am not
able to solve.
I want to
you should check out File::Find on CPAN.org.
-Original Message-
From: Anthony Saffer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 11:03 AM
To: [EMAIL PROTECTED]
Subject: Recognizing Directories...
Hello Everyone,
I am writing a utility that needs to index the
nope that only counts the word once per line..
if the word was in the line twice it would only count it once.
-Original Message-
From: Mat Harris [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 12:06 PM
To: ANIDIL RAJENDRAN
Cc: [EMAIL PROTECTED]
Subject: Re: Counting
Are you only looking for 'california' (case-sensitive?) ?
if so:
open (FILE,C:\\proj\\order\.txt) or die cannot open file: $!;
%seen = ();
while (FILE) {
$count += s/california//g; ## substitute returns number of subs
(m// doesn't)
}
print california: $count\n;
-Original
see below
/^[^0-9a-fA-F]+$/ #if this evals to true string is NOT
## start of string ^ and end of string $
-Original Message-
From: RTO RTO [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 11:00 AM
To: [EMAIL PROTECTED]
Subject: Simple RegEx Question
Here is a RegEx
give us a snippet of your code. you made a mistake somewhere.
and give us examples of what the variables contain.
-Original Message-
From: RTO RTO [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 11:09 AM
To: Nikola Janceski; [EMAIL PROTECTED]
Subject: RE: Simple RegEx
# should be
if(/^[0-9A-F]+\z/i){
print($_ is a hexadecimal number!\n);
}else{
print($_ is not a hexadecimal number!\n); ## even blanks
}
-Original Message-
From: RTO RTO [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 11:20 AM
To: Nikola Janceski; [EMAIL
for once I am not on the top 10 since I first subscribed to the list. :)
-Original Message-
From: Felix Geerinckx [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 12:59 PM
To: [EMAIL PROTECTED]
Subject: Weekly posting statistics - 36/2002
Weekly posting statistics
see inline comments:
-Original Message-
From: Tobin, Elliot [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 9:55 AM
To: '[EMAIL PROTECTED]'
Subject: Arrays inside
I have the following as my data inside a package:
my $dataBlock = { isInsertable=
instead of accessing the $opt_h from the namespace of Getopt that way do
this:
see inline
-Original Message-
From: Mike Singleton [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 11:17 AM
To: [EMAIL PROTECTED]
Subject: stumped on error...
Name Getopt::Std::opt_h
http://search.cpan.org/author/MSERGEANT/Time-Object-1.00/Seconds.pm
that can do it too.
-Original Message-
From: Rob [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 1:19 PM
To: [EMAIL PROTECTED]
Subject: hours minutes and seconds in seconds
I'm working on a script
love the mnemonic for $!,
What just went bang?
-Original Message-
From: david [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 1:46 PM
To: [EMAIL PROTECTED]
Subject: Re: HELP !! displaying Associate Array value pairs
Quincy Ntuli wrote:
the possible globally scoped variables that backticks
can possible set/unset/change/populate?
Thanx!
Nikola Janceski
As far as I'm concerned, I prefer silent vice to ostentatious virtue.
-- Albert Einstein (1879-1955
of backticks to anything you like
including:
my
out
local
david
backticks do not change any
Nikola Janceski wrote:
I am trying to pin point some error I am getting with a
module (from some
old post that one person responded to).
I have narrowed it down some point elsewhere
perhaps a hash of arrays is what you want:
if ($line=~(/^\[\[(\w+)\]\]/)){
$HASH{$1} = [];
}
and you reference the array like
push @{ $HASH{'text'} }, someinfo;
or anyother array functions.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
use hashes.
my %HASH;
$HASH{$_}++ foreach @arr1;
delete $HASH{$_} foreach @arr2;
@arr1 = keys %HASH;
@arr1 now has ( one three five );
-Original Message-
From: Priss [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 8:54 AM
To: [EMAIL PROTECTED]
Subject: Remove elements
See inline comment:
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 8:58 AM
To: 'Priss'; [EMAIL PROTECTED]
Subject: RE: Remove elements in an array from a different array
use hashes.
my %HASH;
$HASH{$_}++ foreach @arr1
er.. see correction
-Original Message-
From: Angerstein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 9:00 AM
To: [EMAIL PROTECTED]
Subject: AW: how to make a regex for a ip address
What about:
/\d?\d?\d\.\d?\d?\d\.\d?\d?\d\.\d?\d?\d\/
But that would match
000255.000255.000255.000255.
hehehe :)
I like the split loop check.
-Original Message-
From: Samy Kamkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 9:02 AM
To: Angerstein
Cc: [EMAIL PROTECTED]
Subject: Re: AW: how to make a regex for a ip
oh and anything else after that last .
000255.000255.000255.000255.slkfdja;ljd;alkjf;lajkd;ljkasfljka;ljdkf;lajsdl;
jkf;lsajd
-Original Message-
From: Nikola Janceski
Sent: Tuesday, August 20, 2002 9:12 AM
To: 'Samy Kamkar'; Angerstein
Cc: [EMAIL PROTECTED]
Subject: RE: AW: how
, copying,
distribution
or use of the contents of this information is prohibited. If you have
received this electronic message in error, please notify us
by telephone or
email (to the numbers or address above) immediately.
-Original Message-
From: Nikola Janceski [mailto:[EMAIL
Ooopss... mistake
/^(?:(25[0-5]|2[0-4][0-9]|[0-1][0-9]{2}|[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9
]|[0-1][0-9]{2}|[0-9]{1,2})$/
^
^
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20
It's not a bug as I see it. You gurus must have told the compiler that $|
can only hold a 0 or 1 for whatever reason;
Just because something isn't documented, doesn't make it a bug.
But even in the docs it tells you,
The following names have special meaning to Perl.
Translation: Don't do crap
supplied by
XML::Simple.
Strange huh? host1 is the same host where I tested it via command line
alone.
Please I can't figure this one out for the life of me.
Thanx in advance,
Nikola Janceski
When I am working on a problem I never think about beauty. I only think
about how to solve the problem
the time anyway.
-Original Message-
From: Tanton Gibbs [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 3:44 PM
To: Nikola Janceski; Beginners (E-mail)
Subject: Re: Problems with rsh command
One thing you might check is your PERL5LIB environment
variable when you rsh
To: Nikola Janceski; Beginners (E-mail)
Subject: Re: Problems with rsh command
One thing you might check is your PERL5LIB environment
variable when you rsh
vs when you login. It could be that rsh does not run your
.profile and
therefore does not set up your environment
RANT
Can we have a weekly FAQ on cross posting?
Kinda like:
Subject: Weekly FAQ on cross posting
Don't do it.
/RANT
-Original Message-
From: Connie Chan [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 11:38 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: How
of perl.
anyone know what can cause this? and how to resolve it?
Nikola Janceski
This is your life and it's ending one minute at a time.
-- Jack ('Fight Club')
The views and opinions expressed
-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 3:49 PM
To: Beginners (E-mail)
Subject: Wierd error...
ld.so.1: //perl-5.6.1-unix/bin/perl: fatal: relocation error: file
//perl-5.6.1-unix/bin/perl: symbol fopen64: referenced
symbol not found
I
I am a dumbass..
I was trying to run a solaris 2.6 compiled version of perl on solaris 2.5.
DUh...
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 3:52 PM
To: Nikola Janceski; Beginners (E-mail)
Subject: RE: Wierd error
probably what you wanted is:
($row, $col) = /(\d+)/g;
-Original Message-
From: Jerry Preston [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 4:49 PM
To: Connie Chan; Beginners Perl
Subject: RE: another reg needed
Connie,
This is what I am looking for! But all I
doh... forgot the ~
($row, $col) =~ /(\d+)/g;
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 4:54 PM
To: '[EMAIL PROTECTED]'; Connie Chan; Beginners Perl
Subject: RE: another reg needed
probably what you wanted is:
($row
soorry.. long week.
Brain malfunction, shouldn't have ~
you aren't doing a bitwise, you want the assignment.
this is right:
($row, $col) = /(\d+)/g;
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 4:56 PM
To: Nikola Janceski; '[EMAIL
[off topic]
I think drieux has finally lost it.
What *it* is, I do not know.
Don't know if I have *it* either.
-Original Message-
From: drieux [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 10:36 AM
To: begin begin
Subject: Re: News from Prague
On Wednesday,
at -e line 1.
That doesn't make sense!
It should check function calls at compile time, correct?
So why not for -c?
Excuse me if I have overstepped my bounds. I still love Perl regardless, but
it can be better.
Nikola Janceski
The significant problems we face today cannot be solved at the same
for the best?
Nikola Janceski
What counts is not necessarily the size of the dog in the fight - it's the
size of the fight in the dog.
-- Dwight D. Eisenhower
The views and opinions expressed
someone shed some light as to why it's behaving this way?
Thanx in advance,
Nikola Janceski
The mere formulation of a problem is far more essential than its solution,
which may be merely a matter of mathematical or experimental skills. To
raise new questions, new possibilities, to regard old
you know that 7 is Sunday?
you know that 1 is Monday?
right? (this confused me to death for a long time with Date::Calc)
-Original Message-
From: Ian Zapczynski [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 1:58 PM
To: [EMAIL PROTECTED]
Subject: add_delta_workdays from
just ran your script as is.. and the date is fine for me
output:
today is 2002-8-12
yesterday is 2002-8-11
the previous business day is 20020809
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 2:06 PM
To: 'Ian Zapczynski'; [EMAIL
read:
perldoc -f split
split /PATTERN/,EXPR,LIMIT
split /PATTERN/,EXPR
split /PATTERN/
split Splits a string into a list of strings and returns
that list. By default, empty leading fields are
preserved, and empty trailing ones are deleted.
Hey anyone have the link handy that explained deep copying and had the
simplest little code snip to make deep copies?
Nikola Janceski
We are such stuff as dreams are made on, rounded with a little sleep.
-- William Shakespeare
http://www.stonehenge.com/merlyn/UnixReview/col30.html
Found it. Interesting read once you get into large complex data structures.
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 9:46 AM
To: 'NYIMI Jose (BMB)'; Nikola Janceski
personally I don't do speed while writing perl. I tend to break many keys.
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and
What? you mean maintainable, effective code is ruining the economy? This is
a joke right?
Microsoft follows this idea, but they really are in it just for the money
and nothing else, and that is ruining our economy.
Microsoft idealogy:
1. Write it well enough to be easy to use.
2. get everyone on
, at 10:23 , Nikola Janceski wrote:
[..]
the Microsoft idea is good for games and NON-CRITICAL systems.
but you would want reliablity for critical things.
[..]
I presume that you then disapprove of NT based
weapons systems and avionics packages - and
consider the idea of a system reboot
nedit.org -- the best there is (in my book)
-Original Message-
From: Angerstein [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 9:55 AM
To: Scott Barnett; [EMAIL PROTECTED]
Subject: AW: Editor
I really love nedit.
-Ursprüngliche Nachricht-
Von: Scott
perhaps you haven't dl-ed the latest version of nedit.
It's up to 5.3 now, and has come along way from version 4.2.
-Original Message-
From: Connie Chan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 9:57 AM
To: Scott Barnett; [EMAIL PROTECTED]
Subject: Re: Editor
Me
1 - 100 of 479 matches
Mail list logo