On Thu, Jan 15, 2015 at 05:27:03PM -0500, Harry Putnam wrote:
> Now I really have to ask what that even means.
>
> When Brandan said that to me... other than the RTFM it sailed
> right over my head... so what does tl;dr mean?
http://www.urbandictionary.com/define.php?term=tl%3Bdr
Regards,
--
On Thu, 15 Jan 2015 17:27:03 -0500
Harry Putnam wrote:
> When Brandan said that to me... other than the RTFM it sailed right
> over my head... so what does tl;dr mean?
tl;dr == too long; didn't read
--
Don't stop where the ink does.
Shawn
--
To unsubscribe, e-mail: beginners-unsubs
John SJ Anderson writes:
> On Tue, Jan 13, 2015 at 7:40 PM, Brandon McCaig wrote:
>> Harry:
>>
>> (Expect typographical errors in such a long post...)
>>
>> tl;dr? RTFM.
> Please don't tell people that. It's not helpful, it's not a helpful
> attitude, and it's really not welcome here.
>
> The
On Tue, Jan 13, 2015 at 7:40 PM, Brandon McCaig wrote:
> Harry:
>
> (Expect typographical errors in such a long post...)
>
> tl;dr? RTFM.
Please don't tell people that. It's not helpful, it's not a helpful
attitude, and it's really not welcome here.
The rest of your post may be excellent, but I
On Tue, 13 Jan 2015 22:40:46 -0500
Brandon McCaig wrote:
> my @files = map { $_->[0] }
>sort { $a cmp $b }
sort { $a->[1] <=> $b->[1] }
>map {[$_, (stat("$dir/$_"))[9] ] }
>grep { ! /^\./ && -f
On Tue, Jan 13, 2015 at 10:40:46PM -0500, Brandon McCaig wrote:
> to spend some quality time with The Revelant Manuals (TFM).
I cite this as proof that I am TFT (too fucking tired). I'm not
going to confess how proud I was of this word play before I
realized that it was completely nonsensical.
-t
Harry:
(Expect typographical errors in such a long post...)
tl;dr? RTFM.
On Fri, Jan 09, 2015 at 08:26:55PM -0500, Harry Putnam wrote:
> I'm taxing peoples patience I suppose but being considerably thick of
> skull I cannot just look at this and see what it does.
>
> > my @files = map { $_->[0]
> ...
> I think the normal and original behavior is no reference. I think
> they added the reference in 5.14 too. Perhaps the documentation
> just fails to mention that support for arrays was added in 5.14
> along with references? Hopefully I got that right this time. :)
>
Ah, RTFM would've helped
Charles:
On Fri, Jan 09, 2015 at 11:02:28AM -0800, Charles DeRykus wrote:
> Definitely needs a 'use 5.014' if you want to dabble.
You appear to be correct. Hmmm, I didn't figure that from the
documentation. Either I read it wrong or it's not documented
well.
> Apparently undocumented that you
Dermot writes:
First, thanks for you helpful input and examples.
I'm taxing peoples patience I suppose but being considerably thick of
skull I cannot just look at this and see what it does.
> my @files = map { $_->[0] }
>sort { $a cmp $b }
>map {[$_, (sta
On Fri, Jan 9, 2015 at 10:31 AM, Brandon McCaig wrote:
> Charles:
>
> On Fri, Jan 9, 2015 at 12:46 PM, Charles DeRykus wrote:
>> On Fri, Jan 9, 2015 at 3:39 AM, Dermot wrote:
>>> I think John has answered your immediate question.
>>>
>>> ...
>>> for (0..$#files) {
>>> print "$_) $files[$_]\n
Charles:
On Fri, Jan 9, 2015 at 12:46 PM, Charles DeRykus wrote:
> On Fri, Jan 9, 2015 at 3:39 AM, Dermot wrote:
>> I think John has answered your immediate question.
>>
>> ...
>> for (0..$#files) {
>> print "$_) $files[$_]\n";
>> }
>>
>
> Alternatively (at least since 5.14) :
>
>
> say "$k)
On Fri, Jan 9, 2015 at 3:39 AM, Dermot wrote:
> I think John has answered your immediate question.
>
> ...
> for (0..$#files) {
> print "$_) $files[$_]\n";
> }
>
Alternatively (at least since 5.14) :
say "$k) $v" while ($k,$v) = each @files;
--
Charles DeRykus
--
To unsubscribe, e-mail:
I think John has answered your immediate question.
If you want to get the files back in a particular order you should include
a sort between and grep readdir. An example might be
my @files = sort { $a cmp $b }
grep { ! /^\./ && -f "$dir/$_" } readdir($dh);
for (0..$#files) {
On Thu, Jan 8, 2015 at 5:52 PM, Harry Putnam wrote:
> Opening a directory and readdir with a grep in there to find specific
> filenames, how does that process collect the files?
See http://www.perlmonks.org/?node_id=533744
tl;dr: it depends on your OS.
> I mean will the generated @ar of files
15 matches
Mail list logo