ply that I would not be able to open this file any
more without resorting to "tricks" such as sysopen or './http://blabla'?
Just wondering.
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
'use strict "compilation"' or
whatever"?
Hm, but such code (for non-trivial programs) will re-invent the wheel a
whole lot, won't it? Since "use" includes a "require". (On the other
hand, it's a require in a BEGIN block, so that may not be a problem
after
--
Philip Newton [EMAIL PROTECTED]
I appreciate copies of replies to my messages to Perl6 lists.
[Iain, I'd really appreciate it if you'd copy me on your replies to my
posts. The volume is so high that I don't always get time to grovel
through the digests in a timely manner.]
On Sat, 30 Sep 2000, iain truskett wrote:
* Philip Newton ([EMAIL PROTECTED]) [30 Sep 2000 02:47]:
However
ore likely that switching to an XML docset produces very little
documentation, and what there is will be of widely varying quality. Not
everyone will want to expend the effort involved to plan out, carefully,
their document structure and produce lovely docs.
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
I
between:
pod
/pod
Skipping between
=pod
and
=cut
is a lot easier than between
podand/pod
when you are reading a line at a time; you can simply strcmp them
and not have to worry about what happens if there's other stuff
before and after the tags.
Cheers,
Philip
--
Philip Newton [EMAIL
multiple markup formats.
I believe Perl can still embed raw *roff. IIRC, in Perl 1, POD hadn't
been invented, and Larry used raw *roff inside Perl code. However, I
don't think this practice is encouraged these days ;)
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
I appreciate copies of replies
cannot, of course, since the order of hash keys obtained by flattening
the hash is not necessarily the same as when you built the hash. So you
might feed in an @in with "Foo: bar" and "Hello: world", unheader it into
a hash, header it back into an array, and get "Hello: world" followed by
"Foo: bar". This may or may not be a problem.
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
will
be the same. Thanks for bearing with me ;)
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
On 27 Sep 2000, at 23:48, iain truskett wrote:
So surely you'd want %HTTP (the input headers) to also be an array
rather than a hash, since they'd be required in order as well?
I don't care, because I don't work with this much. And I don't know
whether I'd need to bear in mind the protocol
On 26 Sep 2000, Johan Vromans wrote:
Philip Newton [EMAIL PROTECTED] writes:
so fewer "cluttering"
parentheses are needed to make things readable while still being correct.
By the same reasoning, you can reduce the use of curlies by using
indentation to define block struct
On 26 Sep 2000, Johan Vromans wrote:
Philip Newton [EMAIL PROTECTED] writes:
so fewer "cluttering"
parentheses are needed to make things readable while still being correct.
Since when do parentheses make things less readable?
Each parenthesis is one "token". The
hen apply negation but results in "-string" (`perldoc perlop` says:
"If the operand is an identifier, a string consisting of a minus sign
concatenated with the identifier is returned. [...] One effect of these
rules is that `-bareword' is equivalent to `"-bareword"'."
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
? Things like abs taking $_ if no
variable is specified? Or localtime taking time()? Or what?
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
|| or ), so fewer "cluttering"
parentheses are needed to make things readable while still being correct.
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
be defined
beforehand).
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
ists $seen{$word}) ? 1 : $seen{$word} + 1;
or
if(defined($seen{$word})) { $seen{$word}++ } else { $seen{$word} = 1 }
or similar.
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
On 15 Sep 2000, at 11:25, Steve Fink wrote:
Does it strike anyone else as odd that 'foo\\bar' eq 'foo\bar'?
While 'foo\\' ne 'foo\' :-) (specifically, the former is not a syntax error
:-)
Cheers,
Philip
On 15 Sep 2000, at 1:10, Perl6 RFC Librarian wrote:
With this proposal, the scalar C$filename can be tagged to be interpolated
by the C\I...\E pair and the double quotish context replaced by single
quotish context resulting in the following:
Definitely with this change, you should include a
On 14 Sep 2000, at 21:06, Glenn Linderman wrote:
I _like_ the conceptual idea, here. But I think we need a different kind of
quoting, not extend single quote semantics. Single quote semantics are really,
really, good for exact quoting. I'm sure you (since you mention VMS) find single
On 14 Sep 2000, at 14:18, Nathan Wiger wrote:
Before you balk at #1 in favor of religious flexibility, please consider
how unmaintainable Perl code would be if @ARGV, or $AUTOLOAD, or STDERR,
or @INC, or chomp(), or split(), or any other widely-used variable or
function was renameable. If
; and wasting the
input.
I suggest again:
s/""/"C "/g; s/C$_ = /C $_ = /;
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
wonder about your c; escape.
=head2 3: For Functions In General
"Cstat;", "Clength;", and many others could use C$_.
Er, they already do. man perlfunc, and/or see my list above.
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
of
input but wishes to preserve $_. (For example: print "Press Enter to
continue\n"; STDIN; print "Continuing to operate on '$_'\n";)
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
On 31 Aug 2000, Perl6 RFC Librarian wrote:
my format $FILE_FORMAT =
@: @
$name, $ssn
.
Then this is even less different and scary. Get rid of that Cmy and
it's Perl 5.
s/that Cmy/that Cmy and the dollar sign/;
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
On 27 Aug 2000, Perl6 RFC Librarian wrote:
With a here doc print ZZZ; the here doc, is processed verbatum.
ITYM "verbatim".
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
onal Earth Rotation Service) monitors things and sends
out a bulletin twice a year, saying whether there will, or will not, be a
leap second on 30 June or 31 December (and which sign it will have if
there is one).
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
. But this all seams rather messy.
$count = () = $variable =~ m/foo/g;
The () puts the match into list context (so the matches themselves are
returned), and that list assignment evaluated in scalar context, giving
the number of values assigned to the list.
Cheers,
Philip
--
Philip Newton
On Fri, 11 Aug 2000, Nathan Wiger wrote:
Philip Newton wrote:
So if we're now on 1-indexing, we'll see lots of @months = (undef, 'Jan',
'Feb') or qw(dummy Jan Feb)... oh well.
Far better, use the new builtin object methods:
$d = date;
print "today is ", $d-date('%A');
AFAIK.
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
.
Unless I misunderstood the example and you wanted the result to be
([1,2,3], [4,5,6]) in which case unzip would not have to do nearly as much
work. But then (1..7) would unzip(3) into ([1,2,3], [4,5,6], [7]).
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
RGV (name of current file while
reading from ) will not collid with @ARGS if sigils
were dropped (aka Highlander notation).
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
And why not, pray? I'd like to see the
justification for this decision.
8. Reverted to GMT from UTC since most systems are internally
maintained in GMT, not UTC.
What's the difference?
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
of the time, whether in CGI code or not.
Cheers,
Philip
--
Philip Newton [EMAIL PROTECTED]
34 matches
Mail list logo