Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

perl-beginner · Perl Beginners Mailing List

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 3765
  • Category: Perl
  • Founded: Aug 2, 1998
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

Advanced
Messages Help
Messages 27204 - 27233 of 27459   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand Author Sort by Date ^
27204 ReginaM
rmiller571957 Send Email
Oct 27, 2011
9:29 pm
Hi, I'd like to ftp the newest file in a directory from a unix box to our windows network. To do this, I plan to use the following to find the newest file: ...
27205 Rajagopal, Jay
kargil_jay Send Email
Oct 27, 2011
9:37 pm
Instead of "" , Use back quotes `` that are near key button 1 . ... From: perl-beginner@yahoogroups.com [mailto:perl-beginner@yahoogroups.com] On Behalf Of...
27206 Amish Husain
amishhusain... Send Email
Oct 27, 2011
9:45 pm
use backtick ` instead of " ________________________________ From: ReginaM <rmiller@...> To: perl-beginner@yahoogroups.com Sent: Thursday,...
27207 ReginaM
rmiller571957 Send Email
Oct 27, 2011
9:46 pm
Jay, Thank you. That got me farther along, but I still have an issue. I've now got: $filename = `ls -at1 /head -1`; print "put $c\n"; What I get is: /head: No...
27208 merlyn@...
merlynstoneh... Send Email
Oct 27, 2011
10:24 pm
... ReginaM> Thank you. ReginaM> That got me farther along, but I still have an issue. ReginaM> I've now got: ReginaM> $filename = `ls -at1 /head -1`; If...
27209 rmillergraysharbor
rmillergrays... Send Email
Oct 27, 2011
10:46 pm
That's it! Thanks to all of you for your help. Regina...
27210 rmillergraysharbor
rmillergrays... Send Email
Oct 28, 2011
6:13 pm
Hi, I'm trying to use perl on solaris to copy a file which may have spaces in it. I can't even get it to work without spaces. On the command line, this works:...
27211 David Precious
bigpresh Send Email
Oct 28, 2011
7:04 pm
... Save yourself hassle, and make your script more secure and portable, by using File::Copy: use File::Copy; File::Copy::copy($filename, 'junk.txt) or die...
27212 Paul.G
medura43 Send Email
Oct 29, 2011
11:29 am
system "cp /sds/ibr/waibr/submit/000000.1 junk.txt"; give that a try. ________________________________ From: David Precious <davidp@...> To:...
27213 Yatin Jadhav
yatinjdhv... Send Email
Oct 29, 2011
12:19 pm
You can also try parsing varialbles as $a = "/sds/ibr/waibr/submit/000000.1 junk.txt" system("cp $a"); or if no variables are included: ...
27214 Chankey Pathak
chankeypatha... Send Email
Oct 29, 2011
12:19 pm
Use System command. ... -- Regards, Chankey Pathak <http://javaenthusiastic.blogspot.com> [Non-text portions of this message have been removed]...
27215 Paul.G
medura43 Send Email
Oct 29, 2011
12:24 pm
Can't speak for windows, but I think for linux the brackets are not required. ________________________________ From: Yatin Jadhav <yatinjdhv@...> To:...
27216 Christian Fuchs
agentphreak@... Send Email
Oct 31, 2011
4:22 pm
Hi everybody, I just wrote a little script for practising perl.It's a perl rewrite of the tac tool. It does what it should do, but it just doesn't end ;) I can...
27217 Shawn H Corey
shawnhcorey@... Send Email
Oct 31, 2011
4:27 pm
... You don't need the while loop. When you read a file handle into an array, the entire stream gets read. It reverses and print the contents. It then goes...
27218 Amish Husain
amishhusain... Send Email
Oct 31, 2011
5:11 pm
try this:   use strict; use warnings; use strict; use warnings; my $lines = <>; $lines = reverse $lines; print $lines; ________________________________ From:...
27219 Shawn H Corey
shawnhcorey@... Send Email
Oct 31, 2011
5:30 pm
... Duplicate, not needed. ... Duplicate, not needed. ... This will read only one line, with a newline at the end. ... This will reverse the characters in the...
27220 Amish Husain
amishhusain... Send Email
Oct 31, 2011
5:55 pm
right, i just replaced the array with a scalar on ur script. but u made a good point with \n ________________________________ From: Shawn H Corey...
27221 rmillergraysharbor
rmillergrays... Send Email
Oct 31, 2011
5:57 pm
After a nice long weekend, I am back trying to cp a file in perl. I am on a Sun Solaris box. Thanks for all of your responses, but still no luck. I've tried 3...
27222 Rajagopal, Jay
kargil_jay Send Email
Oct 31, 2011
5:59 pm
Did you chomp? ... From: perl-beginner@yahoogroups.com [mailto:perl-beginner@yahoogroups.com] On Behalf Of rmillergraysharbor Sent: Monday, October 31, 2011...
27223 merlyn@...
merlynstoneh... Send Email
Oct 31, 2011
5:59 pm
... Amish> right, i just replaced the array with a scalar on ur script. And broke it. If your help hurts more than it helps, please stop answering. It makes ...
27224 merlyn@...
merlynstoneh... Send Email
Oct 31, 2011
6:01 pm
... rmillergraysharbor&gt; my($filename) = `ls -at1 rmillergraysharbor&gt; /sds/ibr/waibrs/submit/SPD/00*`; Why are you using "ls" when Perl is perfectly good at...
27225 Shawn H Corey
shawnhcorey@... Send Email
Oct 31, 2011
6:02 pm
... Actually, it's not clear if the OP wanted to reverse the order of the lines in the file or reverse each line but keep the same order. Or perhaps both. We...
27226 Regina Miller
rmillergrays... Send Email
Oct 31, 2011
6:15 pm
Because I want the latest one, so I need them in order, not by name, but by datetime. ... From: Randal L. Schwartz [mailto:merlyn@...] Sent: Monday,...
27227 rmillergraysharbor
rmillergrays... Send Email
Oct 31, 2011
6:23 pm
That was it! I didn't chomp! Oh, thank you. And thanks to everyone for their help. Regina...
27228 David Precious
bigpresh Send Email
Oct 31, 2011
6:32 pm
... Then do so in Perl, in a robust and portable way: my @files_sorted = sort { -M $a <=> -M $b } glob "/sds/ibr/waibrs/submit/SPD/00*"; That will give you the...
27229 David Precious
bigpresh Send Email
Oct 31, 2011
6:36 pm
... Yup, the newline from the `ls -at1` output was the reason behind the (fairly clear) error message you received when using File::Copy. Whilst you now have a...
27230 Christian Fuchs
agentphreak@... Send Email
Oct 31, 2011
8:02 pm
... Sorry that i hadn't made it clear enough. My purpose is to get the words in the same order as they are, but reversing the lines in which they are printed...
27231 rmillergraysharbor
rmillergrays... Send Email
Oct 31, 2011
10:06 pm
Thank you for the advice. And thanks to David Precious for the sample code that is more Perl-specific. I appreciate it. Regina...
27232 timothy adigun
eternity8008 Send Email
Nov 2, 2011
8:31 pm
Hi Christian ... * *I believe Shawn script will do exactly what you are asking for, however, if you want a one liner without the array variable you could also...
27233 Weder Prado
wederinfra Send Email
Nov 4, 2011
9:21 pm
Hi, I am learning perl and I need to create a regexp that extract only the 4 digits after the "-" Below the string: 20111014-18:00:14.474 : 8=FIX.4.2 9=68 35=1...
Messages 27204 - 27233 of 27459   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help