Started 5 days, 7 hours ago (2009-11-26 00:49:00)
by keath
You've used the grep in a few places, and didn't specify where it doesn't work.
If you are having trouble building the @dev_size and @dev_attribute arrays for examples, it is possible that your
regular expression isn't matching anything, so there may be nothing in $5 or $8 to compare or add.
Code:
#!/usr/bin/perl
use Modern::Perl;
use Data::Dumper;
my (@...
Started 6 days, 19 hours ago (2009-11-24 12:53:00)
by keath
You mean, without changing the script?
Started 4 days, 23 hours ago (2009-11-26 08:00:00)
by digitalpbk
Started 4 days, 20 hours ago (2009-11-26 11:46:00)
by SteveC2810
Started 5 days, 14 hours ago (2009-11-25 17:40:00)
by techcode
Take a look at __DIE__
signal handler http://docstore.mik.ua/orelly/perl/cookbook/ch16_1 6.htm and other places you can google for.
It would be something as:
Code:
...
$SIG{__DIE__} = \&write_log;
Though for that you wouldn't be able to use directly your existing function as error message is passed as @_, not as parameters to the called function...
Started 1 week, 4 days ago (2009-11-19 12:00:00)
by keath
Where should we send the completed scripts?
Started 1 week, 1 day ago (2009-11-22 14:41:00)
by keath
Started 3 days, 22 hours ago (2009-11-27 09:47:00)
by techcode
[irony]
I think PHP forum is much better suited for your thread, I can already see the make_immortal() function implemented in the language, along with is_immortal() of course. Perhaps it would be good to have a backup in case you were wrong (perhaps revoke_immortality()?)
[/irony]
Started 5 days, 16 hours ago (2009-11-25 15:33:00)
by Rhodge09
Quote: Originally Posted by tragic what kind of course is this for
Intro to
PERL Programming why?
Started 1 week ago (2009-11-24 01:47:00)
by sonicblaze
Awsome! That worked perfect. I threw it into the database results loop also, and its outputting exactly as I need. Thank you!!
I thought about using a file accessing package, but I need to strip out the two different numbers, as they are used to update other tables in the database and for logging purposes. But ill have to keep that package in mind for some other tools. Thanks for...